140 likes | 313 Views
Examples from Singer’s Using SAS Proc Mixed to Fit Multilevel Models…. “ To use the paper effectively, … in particular the reader must understand: The difference between a fixed effect and a random effect The notion of multiple levels with a hierarchy
E N D
Examples from Singer’s Using SAS Proc Mixed to Fit Multilevel Models… “To use the paper effectively, … in particular the reader must understand: • The difference between a fixed effect and a random effect • The notion of multiple levels with a hierarchy • The notion that error variance-covariance matrix can take on different structures • That centering can be a helpful way of parameterizing the models so that the results are more easily interpreted”
Example 1 in HLM: Unconditional Means Model • Focus on showing how to make .mdm file based on a single Stata file • Decomposition of variance into between and within variance • Intraclass correlation • Exploring the data graphically: • FileGraph Databox-whisker plots (outcome variable) • FileGraph Dataline plots, scatter plots (outcome variable on a predictor variable)
Example 2 in HLM: Include both level-1 and level-2 predictors • Level-1 variable SES is group-mean centered • Using level-2 variables to model random intercept and random slope • Showing the mixed model version
Continued… • Estimation method: REML vs. ML • Hypothesis testing
Example 3 in HLM: Unconditional Linear Growth Model • Use existing .mdm file to build up a model • Exploring the data graphically • Exploring the model graphically
Example 1 in MLwiN: Unconditional Means Model • Focus on showing how to input data • ASCII format file (tab delimited file)
Continued… • Stata2mlwin by Michael Mitchell (ATS), creating an ASCII data file and an MLwiN command file (.obe file) to read the ASCII file with variable names into MLwiN • stata2mlwin using hsb12, replace
Continued… • REML vs. ML • Decomposition of variance into between and within variance • Intraclass correlation
Example 2 in MLwiN: Include both level-1 and level-2 predictors