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
Contour plot cannot handle missing xHi all, As you can see from my code below, I only want to plot the cells with F statistics higher t…
subsetByVIF -- An ado file that selects a subset of covariates constrained by variance inflation factors (VIFs)subsetByVIF selects subsets of the covariates such that each covariate in a given subset has a VIF t…
Choosing the right modeling technique available in STATADear Stata Experts: I am working on an assignment to predict state policy on a particular issue. Th…
subsetByVIF -- An ado file that selects a subset of covariates constrained by variance inflation factors (VIFs)subsetByVIF selects subsets of the covariates such that each covariate in a given subset has a VIF t…
Comparing two models with different dependent variables after an IV regressionDear Stata users, I have two models with the same independant variables on the same dataset. Model…
Subscribe to:
Post Comments (Atom)
0 Response to Linear predictions
Post a Comment