taking a multi-level approach Nested data structures - Cross-sectional - Longitudinal Multiple comparisons (Gelman, Hill, & Yajima, 2009) Dan Martin 4 of 54 Leveling Up
Multi-level model Mixed-effects model (my preference) Hierarchical linear model Random coefficient model Variance component model Will be using a simple, two-level example today Dan Martin 5 of 54 Leveling Up
main options Model 3: random intercepts and slopes Level 1: Yij = β0j + β1j (Xj ) + eij Level 2: β0j = γ00 + µ0j β1j = γ10 + µ1j Dan Martin 11 of 54 Leveling Up
Halverson (1996) Interested in modeling the relationship between work hours and well-being in different companies. NL1 ≈ 7, 000; GroupsL2 ≈ 100 Can be found in the multilevel package in R Dan Martin 13 of 54 Leveling Up
model Estimate Std. Error t value (Intercept) -0.01 0.02 -0.25 Null Model Num. obs. 7382 Num. groups: GRP 99 Variance: GRP.(Intercept) 0.04 Variance: Residual 0.96 ICC: .04 .04+.96 = 0.04 Dan Martin 14 of 54 Leveling Up
model p-value explanation In order to compute that p-value, we need to know the CDF of the test statistic when the null hypothesis is true. For many multi-level models, however, the CDF of the test statistic when the null hypothesis is true is not known. Dan Martin 16 of 54 Leveling Up
model p-value solutions 1. Use a likelihood ratio test when adding fixed/random effects - Difficulties with “significant” random effects in general 2. Use information criteria 3. Use an approximation, such as Satterthwaite or Kenward-Rogers 4. Estimate p-values via MCMC sampling or (non)-parametric bootstrapping - More on this procedure later For now, dfs and p-values will be calculated based on Satterthwaite’s approximation (found in lmerTest) Dan Martin 17 of 54 Leveling Up
Remember, we are interested in examining the relationship between work hours and well-being across many companies. But first, we need to consider centering issues. Dan Martin 19 of 54 Leveling Up
Remember, we are interested in examining the relationship between work hours and well-being across many companies. But first, we need to consider centering issues. Dan Martin 21 of 54 Leveling Up
Enders & Tofighi, 2008 For level-1 variables, there are two possibilities: 1. Group-mean centering: Gives a more accurate estimate of slope variability Same-level and cross-level interactions (frog-pond effect) 2. Grand-mean centering: Good when taking covariates into account Should be used for all level-2 variables and DV NOTE: This applies for binary predictors as well! Dan Martin 22 of 54 Leveling Up
Enders & Tofighi, 2008 Research questions: 1. How are individual work hours relative to their company related to well-being? 2. How do overall company work hours relate to well-being, above and beyond the relationship above? Because group-mean centering removes any between-level variance, predictor 1 will explain only level-1 variance, and predictor 2 will explain only level-2 variance. Dan Martin 23 of 54 Leveling Up
random intercepts Calculating effect size metrics Variance Explained = varnull −varalternative varnull PVAwithin = 0.01 PVAbetween = 0.5 NOTE: You can also standardize predictors (and DVs) after centering to get a standardized regression weight Dan Martin 25 of 54 Leveling Up
Introducing another predictor There still seems to be residual variability at level-1. Let’s add another predictor (again group-mean centered) to try and explain some of it. New research questions to add: 1. Is an individual’s perception of the leadership ability of their boss related to their well-being? 2. Does this relationship vary across companies? 3. Is average work in a company related to this variation? Dan Martin 26 of 54 Leveling Up
Introducing the variance component Df AIC BIC Chisq Chi Df Pr(>Chisq) Model 2 6 19259.38 19300.82 Model 3 8 19245.24 19300.49 18.15 2 0.0001 Groups Name Variance Corr GRP Intercept 0.019 -0.19 W.LEAD 0.007 Residual 0.777 Dan Martin 29 of 54 Leveling Up
“Significant” variance? Use caution when using p-values to test variance components! It’s on the boundary of possible values (i.e., it’s non-negative) At worst, the p-value will be twice as conservative as a simulation based p-value (Pinheiro & Bates, 2000) Significance not neccessary when examining cross-level interactions (LaHuis & Ferguson, 2009) NOTE: A perfect (or near-perfect) correlation between random effects is a tell-tale sign your random effects structure is over-parametrized. Dan Martin 30 of 54 Leveling Up
important model diagnostics to check with multi-level models are: Level-1 residuals are normally distributed with mean of 0 Random effects are normally distributed with mean of 0 Checking influential observations at level-2 Checking collinearity through VIFs Dan Martin 32 of 54 Leveling Up
Results −0.7 −0.5 −0.3 −0.1 0.1 0.3 0.5 0.7 −1.0 −0.5 0.0 0.5 1.0 Leadership (group−centered) Well−Being (standardized) Company Work Hours −1SD +1SD Dan Martin 41 of 54 Leveling Up
N, assuming Estimate SE is normal may not be reasonable Also useful to put CIs on simple effects plots Sampling must follow the data generating mechanism Dan Martin 42 of 54 Leveling Up
Model estimates: −0.7 −0.5 −0.3 −0.1 0.1 0.3 0.5 0.7 −1.0 −0.5 0.0 0.5 1.0 Leadership (group−centered) Well−Being (standardized) Company Work Hours −1SD +1SD -1SD: B = 0.374(0.019), p ≈ 0 +1SD: B = 0.428(0.019), p ≈ 0 Bootstrap estimates: −0.7 −0.5 −0.3 −0.1 0.1 0.3 0.5 0.7 −1.0 −0.5 0.0 0.5 1.0 Leadership (group−centered) Well−Being (standardized) Company Work Hours −1SD +1SD -1SD: B = 0.38(0.024), p ≈ 0 +1SD: B = 0.422(0.023), p ≈ 0 Dan Martin 43 of 54 Leveling Up
an unconditional model 2. Consider centering options 3. Introduce covariates first, then predictors 4. Test for slope variation (if you’re in to that kind of thing) 5. Introduce interactions 6. Check model diagnostics 7. Interpret and plot the data 8. Use confidence intervals, especially with smaller N And use graphics each step of the way! Dan Martin 45 of 54 Leveling Up
estimation REML Takes into account df of fixed-effects when estimating random effects Random effects are less biased ML Doesn’t take df of fixed-effects into account when estimating random effects Use when interested in comparing models Both methods yield the same fixed-effects estimates (and differences in random effects are small for large N) Dan Martin 46 of 54 Leveling Up
FIML Covariates (predictors) are not included in the model by default Doing so requires distributional assumptions This requires numerical integration, which can be time consuming and yield convergence problems Dan Martin 47 of 54 Leveling Up
MI Another option: Multiple Imputation mice package (in R) MPlus (v6+) Can pool in MPlus, or by modifying mice source code Dan Martin 48 of 54 Leveling Up
analysis is not as straightforward as it is in single-level studies Sample size can be increased in either level ICC will affect power depending upon the research question Simulated power analysis is best for more complicated reseach designs Dan Martin 49 of 54 Leveling Up
analysis is not as straightforward as it is in single-level studies Sample size can be increased in either level ICC will affect power depending upon the research question Simulated power analysis is best for more complicated reseach designs Dan Martin 50 of 54 Leveling Up
Designing an intervention for the classroom with student achievement as the outcome Interested in how number of classrooms, ICC, and effect size could affect power Will fix N per classroom to 5, 100 sims per cell Effect size I chose is completely arbitrary Dan Martin 51 of 54 Leveling Up
0.05 ICC: 0.3 0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0 10 20 30 10 20 30 Level−2 Sample Size Statistical Power Effect Big Small Dan Martin 52 of 54 Leveling Up
Curran, P. (2005). Probing Interactions in Fixed and Multilevel Regression: Inferential and Graphical Techniques Enders, C. & Tofighi, D. (2007). Centering Predictor Variables in Cross-Sectional Multilevel Models: A New Look at an Old Issue Luke, D. (2004). Multilevel Modeling Peugh, J. (2010). A practical guide to multilevel modeling Dan Martin 53 of 54 Leveling Up