BLRT: Conduct Bootstrapped Likelihood Ratio Test

View source: R/blrt.R

BLRTR Documentation

Conduct Bootstrapped Likelihood Ratio Test

Description

Conduct Bootstrapped Likelihood Ratio Test to compare two mixture models.

Usage

BLRT(x, replications = 100, ...)

Arguments

x

An object for which a method exists.

replications

Integer reflecting the number of bootstrapped replications, defaults to 100.

...

further arguments to be passed to or from other methods.

Value

A data.frame.

Examples

## Not run: 
df <- iris[, 1, drop = FALSE]
names(df) <- "x"
res <- mx_mixture(model = "x ~ m{C}*1
                           x ~~ v{C}*x", classes = 1:2, data = df)
BLRT(res, replications = 4)

## End(Not run)

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