Hello,
I am conducting an ANOVA using proc glm and was wondering about confidence interval.
I do not mention CI in my code. Does that mean that it assumes 95%, or is another statement needed?
proc glm data=sasdata.ptsd;
class PTSD;
model auditscore=PTSD;
means PTSD;
run;
quit;
Thanks
The default alpha is 5% so 95% confidence intervals.
You can modify the defaults.
Be careful with default settings, they do things you don't expect sometimes, a CLASS statement being the most problematic usually. For example, check your design matrix and ensure the coding is what you wanted.
model auditscore=PTSD / alpha=0.05;
Or
proc glm data=sasdata.ptsd alpha=0.05;
From the docs:
ALPHA=p
specifies the level of significance p for % confidence intervals. The value must be between 0 and 1; the default value of p = 0.05 results in 95% intervals. This value is used as the default confidence level for limits computed by the following options.
Statement |
Options |
---|---|
UCL= LCL= UCLM= LCLM= |
@Dylans15 wrote:
Hello,
I am conducting an ANOVA using proc glm and was wondering about confidence interval.
I do not mention CI in my code. Does that mean that it assumes 95%, or is another statement needed?
proc glm data=sasdata.ptsd;
class PTSD;
model auditscore=PTSD;
means PTSD;
run;
quit;
Thanks
The default alpha is 5% so 95% confidence intervals.
You can modify the defaults.
Be careful with default settings, they do things you don't expect sometimes, a CLASS statement being the most problematic usually. For example, check your design matrix and ensure the coding is what you wanted.
model auditscore=PTSD / alpha=0.05;
Or
proc glm data=sasdata.ptsd alpha=0.05;
From the docs:
ALPHA=p
specifies the level of significance p for % confidence intervals. The value must be between 0 and 1; the default value of p = 0.05 results in 95% intervals. This value is used as the default confidence level for limits computed by the following options.
Statement |
Options |
---|---|
UCL= LCL= UCLM= LCLM= |
@Dylans15 wrote:
Hello,
I am conducting an ANOVA using proc glm and was wondering about confidence interval.
I do not mention CI in my code. Does that mean that it assumes 95%, or is another statement needed?
proc glm data=sasdata.ptsd;
class PTSD;
model auditscore=PTSD;
means PTSD;
run;
quit;
Thanks
Thank you!
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.