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 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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