Hello Statalist users,
I am trying to test the statistical significance of coefficients of absorbed fixed effects generated using the reghdfe command. Unfortunately, I keep getting errors. For example, consider the following code:
webuse nlswork
reghdfe ln_w grade age ttl_exp tenure not_smsa south , a(idcode year)
Here, both idcode and year are treated as fixed effects and their coefficients are not reported in the final output table. But what if I want to test if their coefficients are statistically different than zero? If I use the command
test 69.year
I get the error "factor 'year' not found in list of covariates." I attempted to follow the instructions in the help site for reghdfe (http://scorreia.com/help/reghdfe.html) for saving fixed absorbed effects but I still have no luck. The only way I can get the test command to work for the regression above is if I take year out of the list of absorbed fixed effects and include it in the main regression.
Unfortunately, the actual application I am working on has a large number of fixed effects (thousands) and I have not been able to get my computer to successfully run the model with the large number of fixed effects in the main model, and not in the list of absorbed fixed effects. When I try this, I get the error:
Factor::sort(): 3900 unable to allocate real <tmp>[2284668,376] FixedEffects::project_one_fe(): - function returned error transform_sym_kaczmarz(): - function returned error accelerate_cg(): - function returned error FixedEffects::_partial_out(): - function returned error FixedEffects::partial_out(): - function returned error <istmt>: - function returned error When I run the model with the large number of fixed effects in the list of absorbed fixed effects, I run into the same problem as above...I cannot run the test command. If anyone has any ideas, I would appreciate your input. Thanks!
Related Posts with Reghdfe: Test coefficients of absorbed FEs after using reghdfe
How to transforming data using loopsI have two or three ideas of using loops to achieve data transformation for data manipulation, but I…
weighting variables before collapsing survey data in STATAHello everyone, I am using 4 rounds of a labor force panel survey for the years (1998, 2006, 2012 a…
insert page break when appending output into a .tex file with -esttab-Dear all, a question on a general problem with no specific reference to particular data. Suppose y…
Clustered bar graph with multiple categorical variablesHello, I am hoping to create a clustered bar graph to compare satisfaction with information receive…
Low within variation independent variable and fixed effectsDear all, I am running a regression where one of my (independent) variables of interest has low wit…
Subscribe to:
Post Comments (Atom)
0 Response to Reghdfe: Test coefficients of absorbed FEs after using reghdfe
Post a Comment