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: Register Now

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!

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
  • 1507 views
  • 0 likes
  • 2 in conversation