View source: R/mixture-3step.R
lr_test | R Documentation |
For a multigroup model of class MxModel
,
conduct overall and pairwise likelihood ratio tests.
All submodels must be identical.
lr_test(x, compare = c("All", "A", "S", "F", "M", "Thresholds"), ...)
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. |
An object of class lr_test
and list
.
if(requireNamespace("OpenMx", quietly = TRUE)){
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)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.