Hi everyone!
I have a linear relationship between the variables y and x, and I am plotting the line, also forecasting for further values of x (in my data, x takes values from 1 to 20, and I want the values until 100):
twoway lfit y x, range(0 100) predopts(xb)
How can I generate from here a variable with all the predicted values of y when x takes the further new values?
Thanks a lot in advance for your help!
Nicolò
Related Posts with Linear predictions
Is this video correct?I am new to stata. I am trying to learn about loops. I searched youtube I found this video. Is this …
Different Number of Observations when using 2SLS and IVprobitHi. I am examining the impact of the migration of one member on children in the migrant's household.…
Coefficient InterpretationHi, I am a bit confused with coefficient interpretation. Y = b0 + b1X + e I know that if Y is 0-1…
xtabond2 GMM: No Observation ErrorHi, I have an unbalanced panel comprising of data from the years 2005 and 2011. I am trying to run …
RE: interaction of marginal effects in logit modelsHi! In logit models, I am interested in estimating the slope of a tangent line. According to Hanush…
Subscribe to:
Post Comments (Atom)
0 Response to Linear predictions
Post a Comment