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
Weak instrument issue with control function approach, in nonlinear modelsDear all, I'm applying the control function (CF) approach in a nonlinear model, the fractional resp…
Quantile treatment effect estimator by Abadie, Angrist, and Imbens (2002)Dear Statalist, Can anyone help with how to calculate percentage effects after estimating a quantil…
Power calculations for clustered designs & multiple survey roundsHello, does anyone know how to conduct power calculations that account for both clustered designs an…
Compare the distributions of two variablesI would like to compare the distributions of two variables: guess_attain_own_treatment and guess_att…
Merging rows that have identical namesDear all, I have been struggling with the following issue. My dataset is basically like in the table…
Subscribe to:
Post Comments (Atom)
0 Response to Linear predictions
Post a Comment