regfit
gives the equation after a regression.
. sysuse auto, clear
(1978 Automobile Data)
. reg mpg price wei len
Source | SS df MS Number of obs = 74
-------------+---------------------------------- F(3, 70) = 46.63
Model | 1628.52531 3 542.841771 Prob > F = 0.0000
Residual | 814.934146 70 11.6419164 R-squared = 0.6665
-------------+---------------------------------- Adj R-squared = 0.6522
Total | 2443.45946 73 33.4720474 Root MSE = 3.412
------------------------------------------------------------------------------
mpg | Coef. Std. Err. t P>|t| [95% Conf. Interval]
-------------+----------------------------------------------------------------
price | -0.000 0.000 -1.03 0.305 -0.001 0.000
weight | -0.003 0.002 -1.72 0.091 -0.007 0.000
length | -0.097 0.058 -1.67 0.099 -0.212 0.019
_cons | 49.685 6.329 7.85 0.000 37.062 62.308
------------------------------------------------------------------------------
. regfit
mpg = 49.68 - 0.00*price - 0.00*weight - 0.10*length
(6.33) (0.00) (0.00) (0.06)
N = 74, R2 = 0.67, adj-R2 = 0.65
Note: S.E. in parentheses