BookmarkSubscribeRSS Feed
Sassybanana
Fluorite | Level 6

Here is the code, what do I need to add to get CI in the output

2 REPLIES 2
PaigeMiller
Diamond | Level 26

Confidence intervals for what?

 

If you want confidence intervals for the mean of a level, you can use the MEANS statement with the CLM option. https://documentation.sas.com/doc/en/pgmmvacdc/9.4/statug/statug_anova_syntax10.htm

 

Note: Many people here will not download Microsoft Office documents because they can be a security threat. Please post your code as plain text inside the box that appears here when you click on the "little running man" icon.

--
Paige Miller
Rick_SAS
SAS Super FREQ

To get confidence limits for the group means, use the CLM option on the MEANS statement. To get confidence limits for the regression parameters, switch to PROC GLM and use the SOLUTION and CLPARM options, as follows:

 

proc anova data=sashelp.class;
class sex;
model height = sex;
means sex / clm;   /* CL for group means */
run;

proc glm data=sashelp.class;
class sex;
model height = sex / solution clparm;  /* CL for regression parameters */
quit;

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 1742 views
  • 2 likes
  • 3 in conversation