Dear Statalist,
I am trying to estimate a two stage least squares where both stages contain multiple fixed effects and interactions between age and district factors. I used reghdfe in combination with the xi command for the first stage regression and attempted to use the stages(first) addition but I keep getting an error saying "invalid options: stages(first)". Does anyone know why this is happening or have any ideas as to a different way to proceed?
Here is my code and the response:
xi: reghdfe yrschl i.age74|intensity, stages(first) absorb(age district) v
> ce(cluster district)
i.age74 _Iage74_2-23 (naturally coded; _Iage74_12 omitted)
i.age74|inten~y _IageXinte_# (coded as above)
invalid options: stages(first)
r(9);
Any input would be greatly valued. Thank you
Related Posts with Two Stage Least Squares with multiple Fixed Effects (using reghdfe)
Unable to access Stata MP2 on UbuntuI have been using Stata on windows 10 for sometime now and recently got a laptop with Ubuntu 20.04 i…
Replicate R's pnorm functionHi Statalist, I'm porting a couple R scripts to Stata and have hit a roadblock. I have been unable …
Calculate weight for repeated cross-sectional data collected weekly since May 2020Hi Could you please suggest how do I calculate weight for the data considered as repeated cross-sect…
Query of small sampleDear Statalist, I would like to get your advice about a stata command. I prefer to generate a small …
Help!Can't open data in STATADear Statalister, I would like to ask why I cannot open data that download as STATA v14+ file.dta f…
Subscribe to:
Post Comments (Atom)
0 Response to Two Stage Least Squares with multiple Fixed Effects (using reghdfe)
Post a Comment