Multilevel / mixed-effects models

For better or worse, the bread and butter of psycholinguistic and other CSD research. Conceptually fantastic, but often tricky to implement well. My suggestion is to start with the first link below, and then pick an introductory paper to read and go through examples (e.g., Brown 2021) or if you prefer textbooks, check out Shaw & Flake. Then, if you’re feeling good about things, I highly suggest working through the examples in Debruine & Barr (2021). Then go apply what you’ve learned to your own data. Then, when you’re feeling really accomplished, write it up for publication, incorporating recommendations from Meteyard & Davies (2020) as you write.

  • An Introduction to Hierarchical Modeling: http://mfviz.com/hierarchical-models/ (Fantastic visual demonstration)

  • Shaw, M. & Flake, J. K. (2023) Introduction to multilevel measurement modeling. https://www.learn-mlms.com

  • Roback, P., & Legler, J. (2021). Beyond multiple linear regression: applied generalized linear models and multilevel models in R. Chapman and Hall/CRC. (Free: https://bookdown.org/roback/bookdown-BeyondMLR/)

  • Brown VA. An Introduction to Linear Mixed-Effects Modeling in R. Advances in Methods and Practices in Psychological Science. 2021;4(1). doi:10.1177/2515245920960351

  • DeBruine, L. M., & Barr, D. J. (2021). Understanding mixed-effects models through data simulation. Advances in Methods and Practices in Psychological Science, 4(1), 2515245920965119.

  • Meteyard, L., & Davies, R. A. (2020). Best practice guidance for linear mixed-effects models in psychological science. Journal of Memory and Language, 112, 104092.

  • Winter, B. (2013). Linear models and linear mixed effects models in R with linguistic applications. arXiv preprint arXiv:1308.5499.

  • Quené, H., & Van Den Bergh, H. (2008). Examples of mixed-effects modeling with crossed random effects and with binomial data. Journal of Memory and Language, 59(4), 413–425. https://doi.org/10.1016/j.jml.2008.02.002

  • Barr, D. J., Levy, R., Scheepers, C., & Tily, H. J. (2013). Random effects structure for confirmatory hypothesis testing: Keep it maximal. Journal of Memory and Language, 68(3), 255–278. https://doi.org/10.1016/j.jml.2012.11.001

  • Matuschek, H., Kliegl, R., Vasishth, S., Baayen, H., & Bates, D. (2017). Balancing Type I error and power in linear mixed models. Journal of Memory and Language, 94, 305–315. https://doi.org/10.1016/j.jml.2017.01.001

Psychometrics

  • Revelle, W. (2009). An introduction to psychometric theory with applications in R. https://personality-project.org/r/book/

  • Ten Hove, D., Jorgensen, T. D., & van der Ark, L. A. (2022). Updated guidelines on selecting an intraclass correlation coefficient for interrater reliability, with applications to incomplete observational designs. Psychological Methods.

  • Ten Hove, D., Jorgensen, T. D., & Van der Ark, L. A. (2025). How to estimate intraclass correlation coefficients for interrater reliability from planned incomplete data. Multivariate Behavioral Research, 1-20.

  • Bürkner, P. C. (2019). Bayesian item response modeling in R with brms and Stan. arXiv preprint arXiv:1905.09501.

  • McNeish, D. (2018). Thanks coefficient alpha, we’ll take it from here. Psychological methods, 23(3), 412.

Mediation Analysis (causal inference cont.)

These resources are intended to be useful to get you started with mediation, but I also recommend carefully reading the first article by Julia Rohrer and colleagues before deciding to undertake a mediation analysis.

  • Rohrer JM, Hünermund P, Arslan RC, Elson M. That’s a Lot to Process! Pitfalls of Popular Path Models. Advances in Methods and Practices in Psychological Science. 2022;5(2). doi:10.1177/25152459221095827

  • Rohrer JM. Thinking Clearly About Correlations and Causation: Graphical Causal Models for Observational Data. Advances in Methods and Practices in Psychological Science. 2018;1(1):27-42. doi:10.1177/2515245917745629

  • Imai, K., Keele, L., Tingley, D., & Yamamoto, T. (2011). Unpacking the black box of causality: Learning about causal mechanisms from experimental and observational studies. American Political Science Review, 105(4), 765-789. https://imai.fas.harvard.edu/research/files/mediationP.pdf

  • Nguyen, T. Q., Schmid, I., & Stuart, E. A. (2021). Clarifying causal mediation analysis for the applied researcher: Defining effects based on what we want to learn. Psychological Methods, 26(2), 255–271. https://doi.org/10.1037/met0000299

  • Kline, R. B. (2015). The Mediation Myth. Basic and Applied Social Psychology, 37(4), 202–213. https://doi.org/10.1080/01973533.2015.1049349

Interactions / Moderation

  • Mize, T. D. (2019). Best practices for estimating, interpreting, and presenting nonlinear interaction effects. Sociological Science, 6, 81-117.

  • Garofalo, S., Giovagnoli, S., Orsoni, M., Starita, F., & Benassi, M. (2022). Interaction effect: Are you doing the right thing? PLOS ONE, 17(7), e0271668. https://doi.org/10.1371/journal.pone.0271668

  • Rohrer JM, Arslan RC. Precise Answers to Vague Questions: Issues With Interactions. Advances in Methods and Practices in Psychological Science. 2021;4(2). doi:10.1177/25152459211007368

  • Rohrer, J. M., & Arel-Bundock, V. (2026). Models as Prediction Machines: How to Convert Confusing Coefficients Into Clear Quantities. Advances in Methods and Practices in Psychological Science, 9(2), 25152459261424825. https://doi.org/10.1177/25152459261424825

Bayesian statistics

You should learn how to do Bayesian stats. If you’ve never tried to use bayes, I promise it’s more intuitive than you think. And because of modern computing and R packages like {brms} and {rstanarm}, its arguably just as easy to implement as frequentist mixed models. If you know how to use lme4, then you’re already 75% of the way to using {brms}.

  • Get Started with Bayesian Analysis: https://easystats.github.io/bayestestR/articles/bayestestR.html*

  • Bayesian Basics: https://m-clark.github.io/bayesian-basics

  • An Introduction to Bayesian Data Analysis for Cognitive Science: https://vasishth.github.io/bayescogsci/book/

  • Vasishth, S., Nicenboim, B., Beckman, M. E., Li, F., & Kong, E. J. (2018). Bayesian data analysis in the phonetic sciences: A tutorial introduction. Journal of phonetics, 71, 147-161.

  • Nalborczyk, L., Batailler, C., Lœvenbruck, H., Vilain, A., & Bürkner, P. C. (2019). An introduction to Bayesian multilevel models using brms: A case study of gender effects on vowel variability in standard Indonesian. Journal of Speech, Language, and Hearing Research, 62(5), 1225-1242

  • Schad, D. J., Betancourt, M., & Vasishth, S. (2021). Toward a principled Bayesian workflow in cognitive science. Psychological methods, 26(1), 103.

  • Statistical Rethinking: https://xcelab.net/rm/statistical-rethinking/ (Statistical Rethinking by Richard McElreath)

A section specific to setting priors

  • see this blue sky post: https://bsky.app/profile/bartlettje.bsky.social/post/3mhxeep3d222w

  • How Should You Think About Your Priors for a Bayesian Analysis?. https://svmiller.com/blog/2021/02/thinking-about-your-priors-bayesian-analysis/

  • Lüdecke, D., Makowski, A. C., Klein, J., Ben-Shachar, M. S., & Makowski, D. (2026). Choosing informative priors in Bayesian regression models: A simulation study and tutorial using Stan and R. Frontiers in Psychology, 17, 1856582. https://doi.org/10.3389/fpsyg.2026.1856582

  • Prior choice recommendations. https://github.com/stan-dev/stan/wiki/prior-choice-recommendations

  • How to Set Priors for Hypothesis Testing in Generalized Linear Models: A Three-Step Workflow with an Application to Binomial Models https://osf.io/preprints/psyarxiv/q7byw_v1

  • Workshop on Bayesian Inference: Priors and workflow. https://4ccoxau.github.io/PriorsWorkshop/. https://www.youtube.com/watch?v=kMSrRd4f2As

  • Different Priors, Different Posteriors. https://www.bayesrulesbook.com/chapter-4#ch4-priors

  • Zondervan-Zwijnenburg, M., Peeters, M., Depaoli, S., & Van De Schoot, R. (2017). Where Do Priors Come From? Applying Guidelines to Construct Informative Priors in Small Sample Research. Research in Human Development, 14(4), 305–320. https://doi.org/10.1080/15427609.2017.1370966

Longitudinal Data Analysis

  • Fantastic and accessible primer on longitudinal analysis: McCormick, E. M., Byrne, M. L., Flournoy, J. C., Mills, K. L., & Pfeifer, J. H. (2023). The Hitchhiker’s guide to longitudinal models: A primer on model selection for repeated-measures methods. Developmental Cognitive Neuroscience, 63, 101281. doi:10.1016/j.dcn.2023.101281

  • Mirman, D. (2017). Growth curve analysis and visualization using R. Chapman and Hall/CRC.

Effect Sizes

  • Guide to Effect Sizes and Confidence Intervals. https://matthewbjane.quarto.pub

  • Effectsize: indices of effect size. https://easystats.github.io/effectsize/

Sample size planning and Statistical Power

If you’re going to read anything on power, read this one
  • Hancock GR, Feng Y. nmax and the quest to restore caution, integrity, and practicality to the sample size planning process. Psychol Methods. 2025 Aug 11. doi: 10.1037/met0000776. Epub ahead of print. PMID: 40788705.

  • Ying, X., Freedland, K. E., Powell, L. H., Stuart, E. A., Ehrhardt, S., & Mayo-Wilson, E. (2025). Determining sample size for pilot trials: a tutorial. bmj, 390.

  • Powering Your Interaction: https://approachingblog.wordpress.com/2018/01/24/powering-your-interaction-2/

Multiplicity and Correcting for Multiple Comparisons

note that this is a topic that has quite a bit of debate

  • Greenland, S., & Hofman, A. (2019). Multiple comparisons controversies are about context and costs, not frequentism versus Bayesianism. European Journal of Epidemiology, 34(9), 801–808. https://doi.org/10.1007/s10654-019-00552-z

  • Hoffmann, S., Lemster, S., Collins, G., Hapfelmeier, A., Heinze, G., Mayr, A., Schmid, M., Wilcke, J. C., & Boulesteix, A. (2026). When to Adjust for Multiple Testing: A Unifying Guiding Principle. Biometrical Journal, 68(4), e70148. https://doi.org/10.1002/bimj.70148

  • Hooper, R. (2025). To adjust, or not to adjust, for multiple comparisons. Journal of Clinical Epidemiology, 180, 111688. https://doi.org/10.1016/j.jclinepi.2025.111688

Random useful things

  • There is only one test: http://allendowney.blogspot.com/2016/06/there-is-still-only-one-test.html implemented in an R package here: https://infer.netlify.app

  • Contrast Coding: https://debruine.github.io/faux/articles/contrasts.html (At some point you will have questions about contrast coding for categorical variables, and the answer is inevitably going to be here)

  • Reaction time: https://lindeloev.github.io/shiny-rt/

  • Complex survey analysis: Zimmer, S. A., Powell, R. J., & Velásquez, I. C. (2024). Exploring Complex Survey Data Analysis Using R: A Tidy Introduction with {srvyr} and {survey}. Chapman & Hall: CRC Press. https://tidy-survey-r.github.io/tidy-survey-book/