BookmarkSubscribeRSS Feed
jessho
Calcite | Level 5

Hi, I am trying to run a mixed-effects logistic regression model looking at the odds of receiving a prescription (rx).  In my model, I am including physician and patient factors like age and sex, etc (X, Y, Z).  However, I wanted to account for clustering by physician (physician_ID) in my dataset with a fixed effects model.  I am having trouble figuring out which command/syntax is appropriate since this is not normal proc logit to account for clustering by physician_ID.  Thank you!

2 REPLIES 2
PaigeMiller
Diamond | Level 26

SInce you speak of clustering by physician, I assume you are dealing with a survey. (Is that correct?)

 

In that case, you should use the CLUSTER command in PROC SURVEYLOGISTIC.

--
Paige Miller
StatDave
SAS Super FREQ

If it is not survey sample data, but just clusters of correlated observations, then there are several types of models you can consider: a random effects logistic model (RANDOM statement in PROC GLIMMIX), a logistic Generalized Estimating Equations (GEE) model (REPEATED statement in PROC GEE or PROC GENMOD), or a conditional logistic model (sometimes called a "fixed effects" model, STRATA statement in PROC LOGISTIC). See the discussion and examples in the documentation for these procedures. 

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

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
  • 1642 views
  • 0 likes
  • 3 in conversation