Here is the code, what do I need to add to get CI in the output
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.
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;
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!
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.