BookmarkSubscribeRSS Feed
Barkamih
Pyrite | Level 9

 

Hi all, 

  proc glm data = protein;
  class month;
  model value = month;
  run; quit; 


proc glm data = protein;
  class month parity;
  model value = month  parity;
  run; quit;

I'm using proc GLM to get the Anova test as these codes showing. 

 

My question is, how to get the 95%  confident intervals of the means by using this Prco, once by one factor and then two factors. 

 

OR What I should use instead of this to get Anova test as well as the confident intervals. 

 

regards 

 

Ibrahim 

 

 

2 REPLIES 2
Reeza
Super User

Have you tried the MEANS statement?

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

 


@Barkamih wrote:

 

Hi all, 

  proc glm data = protein;
  class month;
  model value = month;
  run; quit; 


proc glm data = protein;
  class month parity;
  model value = month  parity;
  run; quit;

I'm using proc GLM to get the Anova test as these codes showing. 

 

My question is, how to get the 95%  confident intervals of the means by using this Prco, once by one factor and then two factors. 

 

OR What I should use instead of this to get Anova test as well as the confident intervals. 

 

regards 

 

Ibrahim 

  proc glm data = protein;
  class month;
  model value = month;
  run; quit; 

 

ed_sas_member
Meteorite | Level 14

Hi @Barkamih 

 

You can specify the CLM and ALPHA options as follows:

model <your model>  / clm alpha=.05

Best,

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—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
  • 1018 views
  • 1 like
  • 3 in conversation