Hello,
I am running an OLS regression, I would like to use the predicted value of my dependent variable as a new variable.(I have to use the predicted variable in another regression)
can someone please help me how I can do it?
Thanks.
Best
Most, if not all regression procedure accept statement OUTPUT for creating a new dataset with predicted values and residuals. Thus if you add a statement like
OUTPUT out=myPredData predicted=myPred;
you will get a new dataset named myPredData similar to your input dataset but with an extra column named myPred which you can use as input to another regression.
PG
Most, if not all regression procedure accept statement OUTPUT for creating a new dataset with predicted values and residuals. Thus if you add a statement like
OUTPUT out=myPredData predicted=myPred;
you will get a new dataset named myPredData similar to your input dataset but with an extra column named myPred which you can use as input to another regression.
PG
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.
Find more tutorials on the SAS Users YouTube channel.