lr_test: Conduct Likelihood Ratio tests

View source: R/mixture-3step.R

lr_testR 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)

tidySEM documentation built on Oct. 25, 2023, 1:06 a.m.