Hi there! I'm fairly new SAS and I'm trying to run some regressions using proc glm in Enterprise Guide. I want to run a basic OLS linear regression. The reason I'm using proc glm instead proc reg is so that I can use class variables. I read that proc reg does not support this. Say I have a sample with 2000 observations, and I want to estimate a series of coeffecients for all the independant variables. So far I'm all good with the following lines of code: ------------------ proc glm data=WORK.INPUT PLOTS=ALL; where group=1 AND NB=0; class C D; model X= A B C D/ solution; output out=WORK.TEST p=yhat r=resid; run; ------------- Now I have another dataset with an additional 20 000 observations. They all include the independant variables A - D, but lack the dependant X. How do I predict X in this dataset, using the coefficients from the above stated regression?
... View more