I have two variables, height and weight. I ran a regression and now need to predict the height at certain levels of weight. A copy of the regression is shown below.
For example if I wanted to estimate the predicted height of an individual who weighs 200 pounds what command would I use?
. reg heightinches weightpounds
Source | SS df MS Number of obs = 1,033
-------------+---------------------------------- F(1, 1031) = 406.74
Model | 1552.95656 1 1552.95656 Prob > F = 0.0000
Residual | 3936.41227 1,031 3.81805264 R-squared = 0.2829
-------------+---------------------------------- Adj R-squared = 0.2822
Total | 5489.36883 1,032 5.31915584 Root MSE = 1.954
------------------------------------------------------------------------------
heightinches | Coef. Std. Err. t P>|t| [95% Conf. Interval]
-------------+----------------------------------------------------------------
weightpounds | .0584382 .0028976 20.17 0.000 .0527523 .064124
_cons | 61.91259 .5875677 105.37 0.000 60.75962 63.06555
------------------------------------------------------------------------------
Related Posts with Using predict to estimate a value after a linear regression
Choosing specific variables in a micro dataset and getting an error message: "expression too long"Hello, I just started to work with stata. I have a micro dataset that contains all US counties and …
Converting ordinal variableDear researchers, I have an unbalanced data set. The dependent variable is a categorical variable f…
Question: combining mi estimate and 'synth' commands (synthetic control method) I am researching the effect of Chile's democratisation on income inequality with the synthetic cont…
Pre and post eventHello, I am using Stata 16.1 and I have the following data: gvkey fyear pifo 007435 2015 2424 00…
cmxtmixlogit - expected probabilities and sign of margin effects First of all, I would like to say that it is my first thread in Statalist. I apologize for any mist…
Subscribe to:
Post Comments (Atom)
0 Response to Using predict to estimate a value after a linear regression
Post a Comment