BookmarkSubscribeRSS Feed
deleted_user
Not applicable
I am a little new to mixed models and proc mixed and was hoping someone could tell me if I am coding my Proc Mixed statement correctly. It converges and the results appear reasonable, but I would greatly appreciate input from someone a little more versed on the subject

Here is the intercepts only model

Yij = Y00 + Y10(gradeband)+ Y20(Ethnic) Y01(SES) + Y11gradeband (SES) (Ethnic) + uoj + rij

Gradeband is a level 1 variable that can take one of three values: 0 1 or 2
Ethinc is a dichotomous level-1 variable: Hispanic or non-Hispanic
SES is dichotomous level 2 variable: lowSESschool or highSESschool

schoolcode is just the identifier variable for the individual schools. Students are nested within schools (obviously)

Here is the Proc Mixed Statement

proc mixed data=schooldata covtest;
class schoolcode gradeband ethnic SES ;
model testscore = gradeband ethnic SES gradeband*ethnic*SES/solution
ddfm=contain;
random intercept /type=un sub=ethnic(schoolcode);
run;


Does this proc mixed statement look right given what I am trying to do? Thanks.

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
  • 513 views
  • 0 likes
  • 1 in conversation