Hi all!
I am trying to store the coefficients of the following output under different names:
ideally I'd like to store the coefficients of
to start off, but Stata does not find [x2]. Is there another way...?
Thanks a lot for your time!
Best,
Melanie
I am trying to store the coefficients of the following output under different names:
Code:
reg c.ptile c.ptileFather##t
Source | SS df MS Number of obs = 857
-------------+---------------------------------- F(3, 853) = 3.72
Model | 9227.91757 3 3075.97252 Prob > F = 0.0112
Residual | 704689.473 853 826.130684 R-squared = 0.0129
-------------+---------------------------------- Adj R-squared = 0.0095
Total | 713917.391 856 834.015644 Root MSE = 28.742
---------------------------------------------------------------------------------
ptile | Coef. Std. Err. t P>|t| [95% Conf. Interval]
----------------+----------------------------------------------------------------
ptileFather | -.0203642 .053272 -0.38 0.702 -.1249238 .0841953
1.t | .8206032 4.124634 0.20 0.842 -7.275018 8.916224
|
t#c.ptileFather |
1 | -.0997823 .0693683 -1.44 0.151 -.235935 .0363703
|
_cons | 54.0756 3.289373 16.44 0.000 47.61939 60.53182
---------------------------------------------------------------------------------
- ptileFather as a_1
- 1.t as a_2
- t#c.ptileFather as a_3
- _con as a_0
Code:
gen a_2=. qui reg c.ptile c.ptileFather##t replace a_2=_b[x2]
Thanks a lot for your time!
Best,
Melanie

Comment