I have run a regression and I would like to save the coefficients and the standard errors as variables.
I can see the coefficients with ereturn list
and e(b)
but I have trouble at getting the standard errors. Also, I don't really now how to turn those into variables. In the Stata manual they refer to [eqno] b[varname]
and [eqno] se[varname]
but there's no example and I can't figure out/find online how to use them.
Example where b1
is the regression coefficient for dependent variable 1, se1
is regression standard error for dependent var1
:
name year output var1 var2 b1 b2 se1 se2
a 1 0.72 0.74 0.87 0.64 0.15 0.48 0.62
a 2 0.61 0.75 0.33 0.64 0.15 0.48 0.62
a 3 0.08 0.61 0.85 0.64 0.15 0.48 0.62
b 1 0.02 0.22 0.26 0.64 0.15 0.48 0.62
b 2 0.8 0.32 0.51 0.64 0.15 0.48 0.62
b 3 0.47 0.68 0.79 0.64 0.15 0.48 0.62
c 1 0.56 0.12 0.63 0.64 0.15 0.48 0.62
c 2 0.35 0.49 0.53 0.64 0.15 0.48 0.62
c 3 0.93 0.65 0.97 0.64 0.15 0.48 0.62
Any help would be hugely appreciated!
scalar
s orlocal
s. The standard error is just the square root of the variance.e(V)
holds the variance-covariance matrix. – Roberto Ferrer