Cross-sectional and intensive longitudinal APIM and DIM
Developed by Pascal Küng, Postdoctoral Researcher at the University of Zurich. OSF profile.
Choose the interactive slide deck, the archival PDF, or one of the concise model guides:
- Interactive HTML tutorial
- Archival PDF tutorial
- Distinguishable dyads quick guide
- Exchangeable dyads quick guide
- Tutorial overview and citation
dyadMLMdata-preparation package- Download the latest release
If you want to run all analyses or rebuild the slides locally:
-
Download the latest release or clone the repository.
-
Open the
00DyadicDataAnalysis.Rproj. -
Open the presentation
DyadicDataAnalysis.Rmd. -
Restore the project packages in the R console:
renv::restore()
-
To run the Bayesian models, install CmdStan:
cmdstanr::check_cmdstan_toolchain(fix = TRUE) cmdstanr::install_cmdstan()
-
Run the code interactively, or rebuild either output from the terminal:
quarto render DyadicDataAnalysis.Rmd --to revealjs --output DyadicDataAnalysis.html quarto render DyadicDataAnalysis.Rmd --to pdf --output dyadic-data-analysis-tutorial.pdf
Both outputs are generated from the same format-aware source. Interactive elements are included only in HTML; the PDF uses static replacements and more compact table formatting.
Tutorial content is licensed under CC BY 4.0; code is licensed under the MIT License.