Help using Base SAS procedures

How to run regressions with more than one class variable and save the res?

Reply

How to run regressions with more than one class variable and save the res?

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...
Valued Guide
Posts: 632

Re: How to run regressions with more than one class variable and save the res?

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]
Ask a Question
Discussion stats
  • 1 reply
  • 88 views
  • 0 likes
  • 2 in conversation