BookmarkSubscribeRSS Feed
Dcicantab5
Obsidian | Level 7

PROC GLM Estimate statement: if group has 8 levels (groups 1-8), do I need to include all in effect-values even though I am testing say, 4 groups only? 

 

e.g. estimate group 4 vs group 2 among groups 2, 3, 4, 5?

 

I plan to do only for comparisons (hence Bonferroni 0.05/4 rather than 0.05/8)

 

thanks,

 

Saiful.

2 REPLIES 2
Ksharp
Super User

I guess you only need to specify the first N level.

E.X.

 

estimate 'A1 VS A2' A 1 -1;

even A have more than two levels .

SteveDenham
Jade | Level 19

This is a great case for the LSMESTIMATE statement, available in PROC MIXED or GLIMMIX.  Take a look at the shared concepts documentation for this statement, and it should be readily apparent how to do the comparisons you want, in  a series of comma separated statments, followed by /adjust=bon; for a Bonferroni adjustment.

 

It is pretty easy to port GLM code to MIXED or GLIMMIX.

 

Steve Denham

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 628 views
  • 0 likes
  • 3 in conversation