BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
statz
Obsidian | Level 7

Dear everyone, 

 

I am trying to save 2 temporary tables from PROC GLM. I would like to save the Parameter Estimates Table and also another table with columns pertaining to fitted values, standard errors, confidence limits, residuals etc. I have the following code, but I am not getting any of these 2 tables in the work folder. I also checked the log window, but there is no error message. Can someone please help me? Thank you!

 

data mydat;
input group $ days yy;
datalines;
A 0 7.4
A 2 7.2
A 4 7.4
A 6 6.9
A 8 6.8
A 10 6.9
A 12 6.7
A 14 6.4
A 16 6.3
B 0 8.1
B 2 8
B 4 7.9
B 6 7.8
B 8 7.7
B 10 7.9
B 12 7.5
B 14 7.4
B 16 7.2
;
run;

 

ods table param=ParameterEstimates;
proc glm data=mydat ;
class group;
model yy= group days days*group/noint alpha=0.05 ss1;
output out=mytable p=fitted stdr=stderr lclm=CIlower uclm=CIupper lcl=PIlower UCL=PIupper rstudent=rstudent residual=resid;
run;

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
PaigeMiller
Diamond | Level 26

ods output parameterestimates=params;

--
Paige Miller

View solution in original post

4 REPLIES 4
PaigeMiller
Diamond | Level 26

ods output parameterestimates=params;

--
Paige Miller
Reeza
Super User

Your code is backwards, it's ODS table name and then what you'd like to call it:

 

 

ods table ParameterEstimates=param;

 

 

statz
Obsidian | Level 7

Thanks a lot  Reeza! 

 

PaigeMiller
Diamond | Level 26

@Reeza wrote:

Your code is backwards, it's ODS table name and then what you'd like to call it:

 

 

ods table ParameterEstimates=param;

 

 


Shouldn't that say ods output and not ods table?

--
Paige Miller

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 3865 views
  • 3 likes
  • 3 in conversation