Dear Stata Community members,
I would like to ask how I can save one particular beta coefficient after running an xtreg with fixed effects (I need to save the coefficient, its standard error, P|z|, and 95% CI interval). Please note that my model has many variables but I only need to save one of the betas (the coefficient, its standard error, P|z|, and 95% CI interval).
My objective is to use that coefficient in different postestimations (done using nlcom) after running other xtreg’s in the meantime (my post-estimation involves using coefficients from different xtregs (1 from each xtreg).
I would also like to ask how I can extract that saved coefficient and “refer to it” in my postestimations (so that STATA understands which coefficient I am referring to). Is there any command similar to “global” which does such deed? I’ve tried several options. One member of our community kindly suggested the use of regress and suest: such command does achieve the goal but I have too many fixed effects (1500+ units, each of which having between 2-16 observations), which makes each post-estimation (nlcom) take about 1.5 hours. I need to do many estimations at this stage so this solution is not very efficient.
I’m struggling a lot with this so your vice would be much appreciated 😊
Kind regards,
Joao
Related Posts with How to save 1 specific xtreg beta coefficient to use in postestimations?
xtsccDears, I have question regarding XTSCC. As I read this can be used to deal with cross-section depen…
How can you make a by() bar graph plot side-by-side bars on one plot rather than two subfigures?I want to change the attached graph so that instead of appearing as two sub-figures, there is just o…
How can I change the order of the bars in this bar graph?I am a beginner Stata user. For a research project, whose information I must unfortunately keep conf…
droping multiple observationsMy data looks like the one below. and I want to delete the observations that dont have hhid (the thr…
ytitle "unrecognized"Hi all, I've been trying to replicate a figure from code I got from the authors of a paper. When I …
Subscribe to:
Post Comments (Atom)
0 Response to How to save 1 specific xtreg beta coefficient to use in postestimations?
Post a Comment