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
Dyadic Ties. Looping if a pair in the same group is also a pair in another group, not longer than five years before the focal groupI am using Stata 15.0 I am trying to construct the variable Prior Tie Density (the number of formed …
Panel Data Missing Observations! SolutionDear Statalisters, I am currently running analysis on a 2-period panel data set from China. I use a…
Meta-regression with WLS: Wrong sign due to weightingDear Statalist, I'm asking for advice to solve a problem with my meta-regression model based on a W…
Using Wald Test for Complex Interaction ModelsDear all: My name is Siyu. I am running a random-effects logit model involving many interaction ter…
rename all words of localDear all, I have trouble finding my way through all possible local manipulations to find what I nee…
Subscribe to:
Post Comments (Atom)
0 Response to Linear predictions
Post a Comment