BookmarkSubscribeRSS Feed
HS2
Fluorite | Level 6 HS2
Fluorite | Level 6

Hello,

 

Please I need to save in a SAS dataset the comparison of means between the risk groups as shown below:

HS2_0-1664275421123.png

the code I used is:


PROC GLM DATA=NUTR OUTSTAT=PLEASE;
class riskc;
model VITB3=riskc;
means riskc / tukey;
run;

 

However I cannot track the output in a saved dataset under WORK library.

 

Thanks for the help!

2 REPLIES 2
PaigeMiller
Diamond | Level 26

Add the following line into your PROC GLM

 

ods output cldiffs=cldiffs;
--
Paige Miller
HS2
Fluorite | Level 6 HS2
Fluorite | Level 6

It worked! thank you .

 

I was using the syntax 'diffs' instead ..

AI Navigator GIF.gif


Navigate AI governance with SAS tools for compliance and ethical AI practices. Try SAS Ai Navigator for free for the first six months.

Check it out on Microsoft Marketplace →

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
  • 2 replies
  • 1969 views
  • 2 likes
  • 2 in conversation