BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Dylans15
Calcite | Level 5

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

1 ACCEPTED SOLUTION

Accepted Solutions
Reeza
Super User

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:

https://documentation.sas.com/?docsetId=statug&docsetTarget=statug_glm_syntax01.htm&docsetVersion=14...

 

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

LSMEANS

CL

MEANS

CLM CLDIFF

MODEL

CLI CLM CLPARM

OUTPUT

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


 

View solution in original post

2 REPLIES 2
Reeza
Super User

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:

https://documentation.sas.com/?docsetId=statug&docsetTarget=statug_glm_syntax01.htm&docsetVersion=14...

 

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

LSMEANS

CL

MEANS

CLM CLDIFF

MODEL

CLI CLM CLPARM

OUTPUT

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


 

Dylans15
Calcite | Level 5

Thank you!

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

What is ANOVA?

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.

Discussion stats
  • 2 replies
  • 1492 views
  • 0 likes
  • 2 in conversation