DATA A
SUBJECT TRTA
01 A
01 B
02 A
02 B
03 B
04 B
04 A
05 A
05 B
QUESTION;
I need to calculate confidence interval and difference with proc genmod
Thanks.
The confidence interval and difference of what?
As a start, refer to the PROC GENMOD Documentation Example Section.
Assuming that you want to compare the means of your two treatments on some response variable, Y, you can use the NLMeans macro following the fit of your model in PROC GENMOD. See the examples in the Results tab of the NLMeans macro documentation. However, if your response is normally distributed, you can simply use PROC GLM and its MEANS statement instead of GENMOD and the NLMeans macro.
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.