equival {ccpsyc} | R Documentation |
One-step equivalence testing The function allows for a simple one step test of configural, metric, and scalar equivalence between multiple groups.
Description
One-step equivalence testing The function allows for a simple one step test of configural, metric, and scalar equivalence between multiple groups.
Usage
equival(x, dat, group, standart_lv = TRUE, orthog = TRUE, estim = "MLM")
Arguments
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 |
Value
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.
Examples
model <- "voice =~ voice1m + voice2m + voice3m
help =~ help1m + help2m + help3m"
equival(x = model, dat = example, group = "country")