knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
The goal of minvariance
is to aid the understanding of longitudinal measurement invariance and see which parts of this method could be automated in R.
The vignettes on the website of this package aim to replicate some examples found online.
If you have any questions, ideas, or comments please get in touch.
You can install the released version of minvariance
from GitHub with:
# install.packages("devtools") devtools::install_github("milanwiedemann/minvariance")
library(tidyverse) library(minvariance) # Specify list of variables # Generate lavaan syntax long_minvariance_syntax(var_list = list(t1 = c("i1_t1", "i2_t1", "i3_t1"), t2 = c("i1_t2", "i1_t2", "i1_t2")), model = "configural") %>% cat()
Here's another example with different variable names
# Generate lavaan syntax long_minvariance_syntax(var_list = list(t1 = c("a1", "b1", "c1"), t2 = c("a2", "b2", "c2")), model = "strong") %>% cat()
R functions to test for longitudinal factorial/measurement invariance
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.