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;
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!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.