Linear Mixed Models (LMM)

🏥 Health Sciences · Linear Mixed Models (LMM)

Linear Mixed Models (LMM)

Karma · Hiyerarşik

Linear Mixed Models (LMM) is one of the statistical analyses applied automatically in MerQur. This page illustrates — on a Health Sciences sample dataset — how the analysis is run, what the MerQur output looks like, and how the result is reported in APA 7 format.

🎯 What is it for?

Linear Mixed Models (LMM) automatically performs all assumption checks required for the data type (normality, homogeneity of variance, etc.) in the background and presents the results in a clear table + chart. Automatic APA 7-formatted interpretation, effect sizes (Cohen’s d, η², R²) and 95% confidence intervals are reported.

📌 When is it used?

  • Statistical analysis of measurements in the Health Sciences domain
  • To produce APA 7-compatible result tables for academic publications
  • Hypothesis testing and decision-making processes
  • Undergraduate / master’s / PhD theses after the appropriate method has been selected

📐 Assumptions

  • Appropriate scale — Variables must be at the measurement level required by the analysis (nominal/ordinal/interval/ratio)
  • Independent observations — Observations must come from individuals independent of one another
  • Sufficient sample size — The minimum n requirement for the analysis must be met
  • Outlier check — Outliers must be detected and evaluated

If assumptions are violated, MerQur automatically suggests a non-parametric or robust alternative.

🛠 How to do it in MerQur

1

Load the data. Select the sample file from File → Open. MerQur auto-detects column types.

2

Select the analysis. From the left side select Linear Mixed Models (LMM).

3

Panel assignments (form fields in the program):

  • Bagimli degisken (DV): HbA1c
  • Sabit etkiler: ['vizit']
  • Etkilesimler: []
  • Grup degiskeni: hasta_id
  • Random slope: None
  • Yontem: REML
4

Optional settings. Effect size ✓ · 95% confidence interval ✓ · Assumption checks (automatic).

5

▶ Run — click the button. Results are produced automatically as a table + chart.

6

📄 Export to Word. APA 7-formatted report with italic statistical symbols.

📊 Sample Dataset — Health Sciences

ℹ Note: The scenario, MerQur output and interpretation below were produced by actually running the real example dataset in MerQur. Numeric results on your own data will differ; the goal is to show how the analysis is set up and interpreted end-to-end.

🎬 Example File

This analysis is demonstrated on the following example dataset for Health Sciences:

Tip/53_lmm_patient_visit_HbA1c.xlsx

🎬 Scenario

We model HbA1c measured repeatedly across visits in the same patients, taking patient as a random effect. For repeated/nested data, LMM is appropriate.

⚙️ Variable Selection

  • Dependent variable: HbA1c
  • Predictor(s): visit
  • Cluster: patient_id (random)
  • >> ADVANCED PARAMETERS (optional in the form — what they do):
  • Nakagawa marginal R-squared (fixed effects) and conditional R-squared (fixed + random), beside ICC.

Data Preview (First 5 Rows)

patient_idvisitHbA1c
1V07.12
1V36.46
1V65.49
1V124.5
2V07.12

n = 200 · Columns: patient_id, visit, HbA1c

📈 MerQur Output

LINEAR MIXED MODELS (LMM) RESULT ───────────────────────────────────────────── ICC = 0.936 Group variance (random intercept) = 1.724 outcome: HbA1c fixed: visit group: patient_id

💬 Interpretation

We modeled HbA1c measured repeatedly across visits in the same patients, taking patient identity as a random effect. ICC = 0.94 is very high: almost all HbA1c variability comes from between-patient differences, while within-patient visits are very similar. LMM correctly handles dependency in nested/repeated (measurements within patient) data; it solves the “independence” assumption that ordinary regression violates via random effects. In medicine it is the right choice for panel/repeated-measure data (patient follow-up). >> ADVANCED PARAMETERS (optional in the form — what they do): – Nakagawa marginal R-squared (fixed effects) and conditional R-squared (fixed + random), beside ICC.

⚠ Common Mistakes

  • Misidentifying the data type (e.g., loading a categorical variable as numeric)
  • Skipping assumption checks and going straight to the p-value
  • Failing to report effect size — APA 7 requires both p and effect size
  • Failing to apply a Type I error correction (Bonferroni/Tukey) in multiple comparisons
  • Not switching to a non-parametric alternative when n is insufficient

📹 Video Walkthrough

Watch the video below for an end-to-end walkthrough of this analysis on a Health Sciences file.

▶ Linear Mixed Models (LMM) — video walkthrough

A complete end-to-end walkthrough of this analysis in MerQur, narrated on screen. Narration is in Turkish.

▶ Watch the video 📺 All videos

📚 If You Used This Analysis, Cite MerQur

If you performed this analysis using MerQur in a scientific study, please use the citation below as part of your academic citation obligations (APA 7):

Örücü, Ö. K. (2026). MerQur: Integrated Academic Data Analysis & Reporting Platform [Computer software] (Version 1.0.0). https://doi.org/10.53463/merqur.2026001

For BibTeX, RIS, EndNote and the English citation form: all citation formats →

Sources:
  1. American Psychological Association. (2020). Publication manual of the American Psychological Association (7th ed.).
  2. Field, A. (2018). Discovering statistics using IBM SPSS Statistics (5th ed.). Sage.
  3. Cohen, J. (1988). Statistical power analysis for the behavioral sciences (2nd ed.). Lawrence Erlbaum.