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!
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
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.