lr_test {tidySEM} | R Documentation |
Conduct Likelihood Ratio tests
Description
For a multigroup model of class MxModel
,
conduct overall and pairwise likelihood ratio tests.
All submodels must be identical.
Usage
lr_test(x, compare = c("All", "A", "S", "F", "M", "Thresholds"), ...)
Arguments
x |
An object for which a method exists. |
compare |
Character vector, indicating which matrices to constrain to be equal in pairwise comparisons. |
... |
Additional arguments passed to other functions. |
Value
An object of class lr_test
and list
.
Examples
df <- iris[c(1:10, 140:150), c(1, 5)]
names(df) <- c("x", "group")
mod <- as_ram("x~1", data = df, group = "group")
mod <- run_mx(mod)
lr_test(mod)
[Package tidySEM version 0.2.7 Index]