MLM Cluster Level Moderator Exercise June 16, 2015 Data The Gambia Data (2009) Level 1 Variables (pupils) schoolID (as ID) – S2Q3_PP Number of words correct in 60 seconds (in mdm) – 2 Variables (head teacher) schoolID (as ID) – Q205 One shift per day=0, Two shifts per day=1 (in mdm) – WSD Control=0, WSD =1 (in mdm) – WSDxshift Interaction of WSD and Q205* – *Note that I created the interaction variable in SPSS prior to uploading the data to HLM. Load the data above into HLM. Use number of words correct in 60 seconds (S2Q3_PP) as the dependent variable for all analyses. Fit the unconditional 2-level model What is the unconditional ICC. Suppose a group of researchers are interested in whether the treatment effect is moderated by whether a school has 1 or 2 shifts per day. Fit the appropriate model. Is there evidence that number of shifts per day moderates the treatment effect? Level-1 Model = + S2Q3_PPij rij β0j Model = + + + + u0j β0j γ00 γ02*(WSDj) γ03*(WSDXSHIFj) Mixed Model = + + + + S2Q3_PPij u0j+ rij γ00 γ02*WSDj γ03*WSDXSHIFj
MLM Cluster Level Moderator Exercise June 16, 2015 Data The Gambia Data (2009) Level 1 Variables (pupils) schoolID – (as ID) S2Q3_PP – Number of words correct in 60 seconds (in mdm) 2 Variables (head teacher) schoolID – (as ID) Q205 – One shift per day=0, Two shifts per day=1 (in mdm) WSD – Control=0, WSD =1 (in mdm) WSDxshift – Interaction of WSD and Q205* *Note that I created the interaction variable in SPSS prior to uploading the data to HLM. Load the data above into HLM. Use number of words correct in 60 seconds (S2Q3_PP) as the dependent variable for all analyses. Fit the unconditional 2-level model What is the unconditional ICC. Suppose a group of researchers are interested in whether the treatment effect is moderated by whether a school has 1 or 2 shifts per day. Fit the appropriate model. Is there evidence that number of shifts per day moderates the treatment effect? Level-1 Model S2Q3_PPij = β0j + rij Model β0j = γ00 + + γ02*(WSDj) + γ03*(WSDXSHIFj) + u0j Mixed Model S2Q3_PPij = γ00 + + γ02*WSDj + γ03*WSDXSHIFj + u0j+ rij
cluster_level_moderator_lab_solutions.docx