sergiocorreia / reghdfe

Linear, IV and GMM Regressions With Any Number of Fixed Effects
http://scorreia.com/software/reghdfe/
MIT License
218 stars 57 forks source link

[BUG] #262

Open smaxwell0120 opened 2 years ago

smaxwell0120 commented 2 years ago

Hi Sergio,

Is it not allowed to use the parallel computing option while including heterogeneous slope terms in the absvar? I am running a fixed effect model with a county fixed effect and a county group level time fixed effect. I also want to include a state-specific linear trend, so what I did is absorb(county, countypair#year state##year). When I add the parallel option, the parallel threads fail and the error code is 3301.

The absvar specification is fine without the parallel option. Can you help me figure out the problem?

sergiocorreia commented 2 years ago

Hi Dongning,

yes, the option should work. Can you share a toy example so I can try to replicate what's going on? e.g. something using the "sysuse auto" dataset?

smaxwell0120 commented 2 years ago

@sergiocorreia yes, please see the example below. I used a different example dataset as the sysuse auto dataset is not a panel.


webuse nlswork

xtset idcode year

reghdfe ln_wage hours i.collgrad ttl_exp, a(birth_yr i.grade#year i.race##c.year) vce(cluster race) parallel(2,cores(2))