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

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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