Hi, I'm trying to run a regreession with two dummy variables, and I need to save the residuals and the estimators to be used later. I have tried using proc glm, but it doesn't work using more than one class variable.. Please help mee...
hmmm
REG does not use the CLASS statement. So using dummy vars is an alternative. GLM does use the CLASS statement and does support more than one class variable. The OUTPUT statement is used to write out the individual estimates. Past that I am not sure of the question (or the model). Consider the following to see if it can start the discussion.
[pre]proc glm data=sashelp.class;
class age sex;
model weight = age|sex height;
output out=stat p=pred cookd=cooksd;
run;
[/pre]
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Registration is open
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss. Register now and lock in 2025 pricing—just $495!