BookmarkSubscribeRSS Feed
Amanda92
Calcite | Level 5

Hi,

 

I'm using SAS On Demand for Academics and new to multilevel modeling as well. I have a dataset with 8300 children who are nested in Mothers nested in household nested in clusters. But I have predictor variables only for child level, mother level and household level. I used PROC GLIMMIX to fit the empty model of the multilevel logistic regression model first with the following code.

 

PROC GLIMMIX data=FINAL.DATABASE NOCLPRINT;
class
Cluster_number Household_number Mother_Number;
model Living_Status=/dist=binomial link=logit;
random int/subject=Mother_Number*Household_number*Cluster_number;
COVTEST/ WALD;
RUN;

 

So is it ok to use Cluster_number in the Subject=Mother_Number*Household_number*Cluster_number even though there are no predictors to be added in the full model for cluster level?

 

Also below code does not give the covariance parameter values of Cluster_number,Household_number*Cluster_number,Mother_Number*Household_number*Cluster_number and residual covariance parameter together. Is there any modification needs to be done to the code to get those values? I need to calculate the ICC for each level.

 

PROC GLIMMIX data=FINAL.DATABASE NOCLPRINT;
class
Cluster_number Household_number Mother_Number;
model Living_Status=/dist=binomial link=logit;
random int/subject=Cluster_number;

random int/subject=Household_number*Cluster_number;

random int/subject=Mother_Number*Household_number*Cluster_number;
COVTEST/ WALD;
RUN;

1 REPLY 1
SteveDenham
Jade | Level 19

What does your output look like?  Are the estimates in the Covariance Parameters table all missing?  Are there warnings in the log, or included as part of the output?  More info will definitely help address your issue.

 

SteveDenham

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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