BookmarkSubscribeRSS Feed
yyuan
Calcite | Level 5

Hi all,

I'm a new user of Proc Glimmix and I would like to specify a multi-level logistic model by using this procedure.

The Data set I use is BRFSS. (Cluster sampling weight) From 2011 - 2014. 

The dependent variable is either "Ever been tested" or "Tested in the past 12 month" . Also these two variables are dummy variables. 

The data set only contain one global weight for each observation.(_LLCPWT)

Years(2011, 2012, 2013, 2014) are level 2 variables in my model.

 

Currently my codes are as follows:

proc glimmix data=xxx.test method=quadrature(qpoints=7) empirical=classical;
    Class year;
         model "Dependent variables"  =  "Here will be the independent variables"            /

                                                                   dist=binomial link=logit obsweight = _LLCPWT solution CL ODDSRATIO (DIFF=FIRST LABEL);
    random intercept / subject=year cl;
run;

 

Just wondering is there any suggetion of my code? Thank you very much!

 

 

 

 

1 REPLY 1
Ksharp
Super User
Or you could also check PROC GEE .

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
  • 1 reply
  • 2287 views
  • 0 likes
  • 2 in conversation