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?
Function HandlesIs there something similar to MATLAB's function handles in MATA? It seems like it would be similar t…
Generate a date variable from another date variable with an if conditionHere I am trying to create a start date (AESTDAT) and end date (AEENDAT) variables from the list bel…
stack data?Dear All, I have this data set. Code: clear input int A str12 B str9(C D) str18 E str9 F str15 G st…
estimates of variances in esttab for all the levelsI'm running a multilevel mixed model with: eststo: xtmixed y x1 x2 || country: || household:, reml e…
Problem with ado update: host not foundI just got the following Mata error message when running ado update: Code: . ado update note: ado u…
Subscribe to:
Post Comments (Atom)
0 Response to How to save 1 specific xtreg beta coefficient to use in postestimations?
Post a Comment