BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
Obsidian | Level 7

Hi everyone,



I have the following code for a logistic regression, 


proc logistic data=have descending;
  class var1(ref='3') var2/ param=reference;
  model treatment = var1 var2;

In my model, the treatment one receives IS the outcome variable. 

Now, some people in the data have more than one occasion of receiving treatment for the medical condition in question. There are 20,000 people and 20,500 cases. It is a very small proportion of people with a "cluster" of cases, but I would like to account for it anyway, regarding standard error estimates. Can anyone point me in the direction of the proper code?



Lapis Lazuli | Level 10 svh
Lapis Lazuli | Level 10
I think you are looking for the PROC GLIMMIX procedure, which allows you to build mixed effects logit models to account for the fact that some of your observations are not independent. It does seem like you should ask yourself why some of these subjects have more than one observation in your data and how that could influence the outcomes. E.g., if there was some kind of cumulative benefit of receiving additional treatments, that could make your sub-set of respondents a biased sample and not just a sample with random error.



Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

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.

Get the $99 certification deal.jpg



Back in the Classroom!

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

View all other training opportunities.

Discussion stats
  • 2 replies
  • 3 in conversation