Good afternoon, all
I am hoping to figure out if it's possible, and if so, how to retrieve frequencies and summary statistics (as in those returned by the tab and sum commands) for variables included in regression models. As I cannot share my exact data for privacy concerns, please see the below for an example.
When I run the following code on the system's 'auto' dataset, the below model is returned.
My question, then, is whether it is possible to retrieve from this model the number of observations, mean, and standard deviation for each of the variables included.
Thank you in advance for any help you can offer.
Trent
I am hoping to figure out if it's possible, and if so, how to retrieve frequencies and summary statistics (as in those returned by the tab and sum commands) for variables included in regression models. As I cannot share my exact data for privacy concerns, please see the below for an example.
When I run the following code on the system's 'auto' dataset, the below model is returned.
Code:
sysuse auto
reg price mpg foreign, robust
Linear regression Number of obs = 74
F(2, 71) = 12.72
Prob > F = 0.0000
R-squared = 0.2838
Root MSE = 2530.9
------------------------------------------------------------------------------
| Robust
price | Coef. Std. Err. t P>|t| [95% Conf. Interval]
-------------+----------------------------------------------------------------
mpg | -294.1955 60.33645 -4.88 0.000 -414.503 -173.8881
foreign | 1767.292 607.7385 2.91 0.005 555.4961 2979.088
_cons | 11905.42 1362.547 8.74 0.000 9188.573 14622.26
------------------------------------------------------------------------------
Thank you in advance for any help you can offer.
Trent
Comment