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-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 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
  • 1569 views
  • 0 likes
  • 2 in conversation