View source: R/cfa_equivalence.R
equival | R Documentation |
One-step equivalence testing The function allows for a simple one step test of configural, metric, and scalar equivalence between multiple groups.
equival(x, dat, group, standart_lv = TRUE, orthog = TRUE, estim = "MLM")
x |
CFA model identical to models provided to lavaan. |
dat |
A data frame or tibble containing the raw data for the specified model. |
group |
A character string that indicates the column of dat that contains the grouping variable. e.g "country" |
standart_lv |
A boolean that indicates whether the latent variables should be standardised. |
orthog |
A boolean that indicates whether the latent variables should be orthogonal. |
estim |
A string indicating the estimator to be used MLM for complete data and MLR for incomplete data. Defaults to MLM |
Returns a data frame with the fit indices for each model and delta values comparing the different levels of equivalence. For a step by step interpretation see.
model <- "voice =~ voice1m + voice2m + voice3m help =~ help1m + help2m + help3m" equival(x = model, dat = example, group = "country")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.