Skip to content

mvuorre/funky-firefly

Repository files navigation

Introduction to latent means models in R

Repository for our manuscript discussing an R and brms implementation of latent mean centering in multilevel models of longitudinal psychological data.

Reproduce

To reproduce, download our materials, restore the R environment (renv) and knit ms.Rmd.

In terminal:

# Download materials
git clone https://github.com/mvuorre/funky-firefly.git

# Enter directory
cd funky-firefly

# (Optional) modify .Renviron.example & rename it to .Renviron

# Run code and produce outputs
make

Contribute

Contributions preferably via pull requests. You can also grab the rendered manuscript (Word, PDF) from the latest release for comments & edits.