How to Read: A general and simple method for obtaining R2 from generalized linear mixed‐effects models [Reading Guide]

Shinichi Nakagawa, H. Schielzeth · 2013

Three-Pass Reading Method

The three-pass reading method is a systematic approach designed to efficiently extract maximum understanding from research papers. The first pass (5-10 minutes) gives you a high-level overview by skimming the title, abstract, introduction, and conclusion. The second pass (up to 1 hour) involves careful reading of the paper with emphasis on methodology and key technical details. The third pass (1-5 hours) focuses on deep understanding, critical analysis, and connecting ideas to related work.

This structured approach helps you determine a paper's relevance quickly, then dive deeper only when needed, making your research workflow more efficient and effective.

This guide will help you efficiently read and understand "A general and simple method for obtaining R2 from generalized linear mixed‐effects models" using the three-pass approach.

First pass (5–10 min)

What to skim in this paper: Begin by quickly scanning the title, the introduction, and the discussion/conclusion. Since there is no abstract, the introduction is particularly important for grasping the paper's core message.

  • Title: "A general and simple method for obtaining R2 from generalized linear mixed‐effects models" – This immediately tells you the paper's focus: calculating R-squared for Generalized Linear Mixed-Effects Models (GLMMs), and promises a straightforward approach.
  • Introduction (p. 1-2): Read the first few paragraphs to understand why R-squared is important in statistical modeling and why it's particularly challenging to calculate for GLMMs. Look for the authors' stated goal, which is to "propose a general and simple method for calculating R2 for GLMMs." Pay attention to the distinction between "marginal" and "conditional" R2, as these are central concepts.
  • Discussion (p. 4-5): Skim the first and last paragraphs of the Discussion section. The opening paragraphs will reiterate the problem and the proposed solution's benefits (generality, simplicity). The concluding remarks often summarize the main findings and highlight future work or limitations.

What to notice: During this quick pass, identify the core problem, the proposed contribution, and the general setting.

  • Problem: The difficulty of calculating a meaningful R-squared for GLMMs, which account for both fixed and random effects, and non-Gaussian error distributions. Existing methods are often complex or not universally applicable.
  • Contribution: The paper proposes a new, general, and simple method to calculate both marginal R2 (variance explained by fixed effects) and conditional R2 (variance explained by fixed and random effects) for GLMMs.
  • Setting: The method is designed for GLMMs, which are widely used in ecology, biology, and other fields to analyze non-normal data with hierarchical structures.

Second pass (up to 1 hour)

Using SpatialRead in the Second Pass

  • Use the Screenshot tool to capture figures, tables, diagrams, and formulae from the PDF and use AI for simple explanations.
  • Ask: "Explain Figure X at a high level", "Compare Table 2 vs 3", or "What does the y-axis represent here?"
  • Download SpatialRead →

What sections/figures to focus on: In this pass, delve deeper into the methodology and key results. Focus on understanding how the method works and what it achieves.

  • Introduction (p. 1-2): Re-read the introduction carefully. Ensure you fully grasp the distinction between marginal and conditional R2, and why calculating total variance is complex for GLMMs (due to observation-level variance).
  • The general method (p. 2-3): This is the heart of the paper.
    • Understand the definitions of total variance for Linear Mixed Models (LMMs) in Equation 1, and how marginal (Equation 2) and conditional (Equation 3) R2 are derived for LMMs.
    • Crucially, focus on the "Extension to GLMMs" subsection. Equation 4, which defines the observation-level variance for different distributions (Poisson, Binomial, Gaussian, Gamma), is key to the method's generality.
    • Follow how these components are combined in Equation 5 (total variance for GLMMs), Equation 6 (marginal R2 for GLMMs), and Equation 7 (conditional R2 for GLMMs).
  • Simulation study (p. 3): Read this section to understand how the authors validated their method. Note the different model types (Gaussian, Poisson, Binomial) and parameters they tested. This provides context for the results.
  • Results (p. 3-4): Examine the figures to see the method in action.
    • Figures 1, 3, and 5: These figures show the proposed method's R2 values against the "actual" R2 values from the simulated data for Gaussian, Poisson, and Binomial GLMMs, respectively. Look for how closely the points align with the 1:1 line, indicating accuracy.
    • Figures 2, 4, and 6: These figures compare the proposed method's R2 values with those from a previously published method (Nakagawa & Schielzeth 2013). Notice the similarities and any subtle differences (e.g., Figure 4 for Poisson models suggests the proposed method might be slightly more accurate for marginal R2).
  • Discussion (p. 4-5): Read the entire Discussion section. Pay attention to the authors' interpretation of their results, the strengths of their method, and how it compares to others.

Key terms/questions to note:

  • Marginal R2 vs. Conditional R2
  • Generalized Linear Mixed-Effects Models (GLMMs)
  • Observation-level variance (and its calculation for different distributions)
  • Variance components
  • How does this method compare to existing ones, and what are its advantages?

Third pass (1–5 hours)

Using SpatialRead in the Third Pass

  • Highlight complex keywords, dense paragraphs, equations, or proofs and ask for a plain-English explanation that preserves notation.
  • Use AI to explain the concepts in a way that is easy to understand.
  • Ask for alternative phrasings or analogies to confirm understanding without changing technical meaning.
  • Connect concepts with each other using AI to build a comprehensive understanding of the paper.
  • Download SpatialRead →

Deep reading guidance: This pass involves a critical and detailed reading of the entire paper.

  • Methods (p. 2-3): Go through the equations line by line. Ensure you understand the derivation of each variance component and how they combine to form the R2 values. Consider the assumptions underlying the method (e.g., random effects are normally distributed, as mentioned in the Discussion).
  • Results (p. 3-4): Critically evaluate the simulation study design. Are the chosen parameters and model types representative? Do the figures fully support the authors' claims? Pay attention to the nuances in the comparisons with other methods.
  • Discussion (p. 4-5): Focus on the limitations section. The authors explicitly state that the method assumes normally distributed random effects, independence of fixed and random effects, and does not address models with multiple random factors, non-nested random effects, or complex error structures (e.g., zero-inflated models). Understanding these limitations is crucial for knowing when and where to apply the method.

Replication pointers if applicable: While this paper doesn't provide code directly, the detailed equations and the description of the simulation study offer a strong basis for replication.

  • Equations 4, 6, and 7: These are the core formulas. To replicate, you would need to implement these equations.
    • For a given GLMM, you would extract the variance of the fixed effects, the variance of the random effects, and then calculate the observation-level variance based on the specific error distribution (Poisson, Binomial, Gaussian, Gamma) using the formulas in Equation 4.
    • Once these variance components are obtained, you can directly apply Equations 6 and 7 to calculate marginal and conditional R2.
  • Simulation Study (p. 3): The description of the simulation setup (model parameters, number of groups, observations per group, distributions) provides enough detail to recreate similar synthetic datasets and test the method. This would involve:
    • Generating data according to specified GLMM structures (e.g., Poisson with a log link, Binomial with a logit link).
    • Fitting GLMMs to these simulated datasets.
    • Applying the proposed R2 method to the fitted models.
    • Comparing the calculated R2 values to the "true" R2 values derived from the known parameters of the simulated data.