BookmarkSubscribeRSS Feed
marcaya
Calcite | Level 5

I am trying to fit a three level model: observations ("t") nested in subjects ("id"), subjects cross-classified into municipalities -people have moved over time in my study so I can't use a simple nested structure ("MuniID"). I'd like to compute empirical rather than model-based standard errors for my fixed effects, but when I specify the empirical option in PROC MIXED, I get a warning that I only have one effective subject. The dimensions table says I only have one effective subject, though the class level information is correct - I have 5 waves in 1,741 people in 195 towns.

I'm confused about why my dataset is read by SAS as having only one effective subject and how I can get the empirical standard errors I need. Anyone have any thoughts?

Any advice would be greatly appreciated!

Code:

proc mixed data = obese method = ml;

class ID t MuniID RACE SEX;

model BMI= edu inc age RACE SEX density time time*time pctpov fcrate/ solution;

repeated t/type =un subject=ID;

random intercept / subject=MuniID;

run;

Output

Dimensions
Covariance Parameters16
Columns in X22
Columns in Z195
Subjects1
Max Obs Per Subject20232

Class  Level Information
ClassLevels
ID1741
t5
MuniID195
RACE5
SEX2

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 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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

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

View all other training opportunities.

Discussion stats
  • 0 replies
  • 653 views
  • 0 likes
  • 1 in conversation