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;

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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
  • 1543 views
  • 2 likes
  • 3 in conversation