adding a level 1 predictor
play

Adding a Level-1 Predictor PSYC 575 August 25, 2020 (updated: 7 - PowerPoint PPT Presentation

Adding a Level-1 Predictor PSYC 575 August 25, 2020 (updated: 7 September 2020) Week Learning Objectives Explain what the ecological fallacy is Use cluster-mean/group-mean centering to decompose the effect of a lv-1 predictor Define


  1. Adding a Level-1 Predictor PSYC 575 August 25, 2020 (updated: 7 September 2020)

  2. Week Learning Objectives • Explain what the ecological fallacy is • Use cluster-mean/group-mean centering to decompose the effect of a lv-1 predictor • Define contextual effects • Explain the concept of random slopes • Analyze and interpret cross-level interaction effects

  3. Adding Level-1 Predictors • E.g., student’s SES • Both predictor ( ses ) and outcome ( mathach ) are at level 1 • OLS still has Type I error inflation problem • Unless ICC = 0 for the predictor • MLM can answer additional research questions • Within-Between effects and contextual effects • Random (varying) slopes • Cross-level interactions

  4. Research Questions • Does math achievement vary across schools? How much is the variation? • Do schools with higher mean SES have students with higher math achievement? • Do students with higher SES have higher math achievement? Is the relation similar at the individual and cluster levels? Is this relation similar across schools? • Is the relation between SES and math achievement moderated by some types of schools (e.g., Catholic vs. Public, high mean SES vs low mean SES)?

  5. The Same Predictor? • Is it different to use MEANSES vs. SES as predictor? • MEANSES → MATHACH is positive • γ 01 = 5.72 ( SE = 0.18) • Should the coefficient be the same with SES ?

  6. Ecological Fallacy

  7. Ecological Fallacy • Robinson’s paradox (% immigrant and % illiterate) • Errors in assuming that relationships at one level are the same moving to another level • Failure to account for the clustering structure ➔ Misleading results

  8. “Same” Predictor, Different Effects • Example: Exercise and blood pressure Exercise frequency − + Blood Exercising pressure

  9. “Same” Predictor, Different Effects • Example: Big-Fish-Little-Pond Effect (Marsh & Parker, 1984) School- Average Ability − + Student Academic Self- Ability Concept

  10. Overall Effect

  11. Within & Between Effects

  12. Within & Context xtual Effects

  13. Never simply include a level-1 1 predictor Unless it has the same values for every cluster

  14. Two Approaches • Both involves computing the cluster means • E.g., ses → meanses 1. Cluster-mean centered (cmc) variable + cluster mean • Between-within method • Decompose into between-within effects 2. Raw/uncentered predictor + cluster mean • Study contextual effects (i.e., between minus within)

  15. mathach vs. . ses

  16. Decomposing In Into Lv-2 and Lv-1 Components • Group-mean centering • ses_cmc = ses ij – meanses j

  17. Between-Within Decomposition • Lv 1: School j mathach ij = β 0 j + β 1 j ses_cmc ij + e ij γ 00 2 τ 0 • Lv 2: γ 01 β 0 j = γ 00 + γ 01 meanses j + u 0 j meanses j β 0 j u 0 j β 1 j = γ 10 • Combined: σ 2 mathach ij = γ 00 + γ 01 meanses j + γ 10 γ 10 ses_cmc ij + u 0 j + e ij ses_cmc ij Y ij e ij Student i Student-level School-level Effect Effect

  18. ># Linear mixed model fit by REML ['lmerMod'] ># Formula: mathach ~ meanses + ses_cmc + (1 | id) ># Data: hsball ># Fixed effects: ># Estimate Std. Error t value ># (Intercept) 12.6481 0.1494 84.68 ># meanses 5.8662 0.3617 16.22 ># ses_cmc 2.1912 0.1087 20.16 The student-level effect is 2.19 The school-level effect is 5.87

  19. Visualizing the Difference

  20. In Interpret the Coefficients • Student A • From a school of average SES • SES level at the school mean ➔ ses = ____, meanses = ___, ses_cmc = ___ • Predicted mathach = ___ + ___ (___) + ___ (___) = ___

  21. In Interpret the Coefficients • Student B • From a school of average SES • SES level 1 unit higher than the school mean ➔ meanses = ___, ses_cmc = ___ • Predicted mathach = ___ + ___ (___) + ___ (___) = ___

  22. Interpret the Coefficients (Cont’d) • Student C • From a high SES school (one unit higher than average) • SES level 1 unit below the school mean ➔ meanses = ___, ses_cmc = ___ • Predicted mathach = ___ + ___ (___) + ___ (___) = ___

  23. Context xtual Effects

  24. xtual Effect 1 Context • γ 01 - γ 10 = 5.87 – 2.19 = 3.68 • Effect of School SES (context) on individuals: • Expected difference in achievement between two students with same SES, but from schools with a 1 unit difference in meanses [1]: When there is no random slopes, the contextual effect model is a reparameterization of the between-within model, meaning that they have the same fit

  25. ># Linear mixed model fit by REML ['lmerMod'] ># Formula: mathach ~ meanses + ses + (1 | id) ># Data: hsball ># Fixed effects: ># Estimate Std. Error t value ># (Intercept) 12.6613 0.1494 84.763 ># meanses 3.6750 0.3777 9.731 The student-level effect is 2.19; ># ses 2.1912 0.1087 20.164 the contextual effect = 3.68 = 5.87 – 2.19

  26. Random Slopes/Random Coefficients

  27. Research Questions • Does math achievement varies across schools? How much is the variation? • Do schools with higher mean SES have students with higher math achievement? • Do students with higher SES have higher math achievement? Is the relation similar at the individual and cluster levels? Is this relation similar across schools? • Is the relation between SES and math achievement moderated by some types of schools (e.g., Catholic vs. Public, high mean SES vs low mean SES)?

  28. Vary rying Regression Lines • Decomposing effect model • Assumes constant slope across schools for ses → mathach • Instead, one can investigate whether that relation changes across schools

  29. Let’s Focus on One School • mathach i = β 0 + β 1 ses i + e i mathach School 1 e 5 β 1 e 4 e 1 e 3 e 2 β 0 0 ses

  30. Multi-Level Model (M (MLM) • School 1: mathach i 1 = β 01 + β 11 ses i 1 + e i 1 mathach School 1 β 11 β 01 0 ses

  31. Consider a Second School • School 2: mathach i 2 = β 02 + β 12 ses i 2 + e i 2 School 2 mathach β 12 β 02 0 ses

  32. Consider a Third School • School 3: mathach i 3 = β 03 + β 13 ses i 3 + e i 3 mathach School 3 β 13 = 0 β 03 0 ses

  33. Combining All Schools mathach 0 ses

  34. Combining All Schools • mathach ij = β 0 j + β 1 j ses ij + e ij ( j = 1, 2, … , 160) School 2 mathach School 1 β 11 Average Effect β 12 β 1_Average of SES β 01 β 03 School 3 β 13 = 0 β 0_Average β 02 0 ses

  35. Combining All Schools School β 0 j β 1 j Math 1224 11.06 2.50 1288 13.07 2.48 1296 9.20 2.35 0 SES 160 1308 14.38 2.31 Schools Random … Intercepts 9397 10.40 1.87 9508 13.69 2.52 Random Slopes 9550 11.29 2.67 9586 13.37 2.27 β 1_Average = γ 10 13.01 2.39 Mean 4.83 0.41 Variance β 0_Average = γ 00

  36. Random-Coefficient Model • Lv 1: • mathach ij = β 0 j + β 1 j ses_cmc ij + e ij • Lv 2: • β 0 j = γ 00 + γ 01 meanses j + u 0 j Average • β 1 j = γ 10 + u 1 j slope of SES • Combined: • mathach ij = γ 00 + γ 01 meanses j + γ 10 ses_cmc ij + u 0 j + u 1 j ses_cmc ij + e ij Deviation of school j ’s slope from the average

  37. Centering • Raudenbush & Bryk (2002) noted that slope variance were better estimated with cluster mean centering • However, Snijders & Bosker (5.3.1) suggested it should be based on theory • Remember to add the cluster means • See also consult Enders & Tofighi (2007) 1 [1]: https://doi.org/10.1037/1082-989X.12.2.121

  38. Path Diagram School j γ 00 2 τ 0 γ 01 meanses j β 0 j u 0 j γ 10 2 τ 1 β 1 j u 1 j σ 2 ses_cmc ij Y ij e ij Student i

  39. Variance Components Math 2 • Var( u 0 j ) = τ 0 2 • Var( u 1 j ) = τ 1 2 𝑣 0𝑘 τ 0 τ 01 0 SES Var = 𝐇 = 𝑣 1𝑘 2 τ 01 τ 1 Variance of the school Variance of the Covariance of the intercepts intercepts school slopes and slopes, which are seldom interpreted

  40. No random intercepts No random slopes 2 = 0 2 = 0 Var( u 0 j ) = τ 0 Var( u 1 j ) = τ 1 Math Math 0 0 SES SES

  41. Full Equations mathach 𝑗𝑘 = γ 00 + γ 01 meanses 𝑘 + γ 10 ses_cmc 𝑗𝑘 +𝑣 0𝑘 + 𝑣 1𝑘 ses_cmc 𝑗𝑘 + 𝑓 𝑗𝑘 2 𝑣 0𝑘 0 , τ 0 τ 01 0 𝑣 1𝑘 ~𝑂 2 τ 01 τ 1 𝑓 𝑗𝑘 ~𝑂 0, σ

  42. Look at the SE SE s of f Fixed Effects > lmer(mathach ~ meanses + ses_cmc + (ses_cmc | id), data = hsball) Fixed effects: Estimate Std. Error t value (Intercept) 12.6454 0.1492 84.74 meanses 5.8963 0.3600 16.38 ses_cmc 2.1913 0.1280 17.12 SE = 0.109 when random slopes not included ➔ underestimated

  43. Random Effect Estimates Random effects: Groups Name Variance Std.Dev. Corr id (Intercept) 2.6931 1.6411 ses_cmc 0.6858 0.8282 -0.19 Residual 36.7132 6.0591 Number of obs: 7185, groups: id, 160 2 = 2.69 = • τ 0 variance of intercepts 2 = 0.69 = slope • τ 1 variance

  44. In Interpreting Random Slopes • Average slope = γ 10 = 2.19 • SD of slopes = τ 1 = 0.83 • 68% Plausible range • γ 10 +/- τ 1 = [ γ 10 – τ 1 , γ 10 + τ 1 ] = [____, ____] For majority of schools, SES and achievement are positively associated, with regression coefficients between ___ and ____

  45. Visualize the Vary rying Slopes OLS Shrinkage (EB)

  46. Cross-Level In Interaction

Recommend


More recommend