% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/blrt_robust.R
\name{blrt_robust}
\alias{blrt_robust}
\title{Bootstrapped Likelihood Ratio Test for Robust LPA}
\usage{
blrt_robust(data, G, model = 6, n_samples = 50, n_starts = 2)
}
\arguments{
\item{data}{A matrix or data.frame.}

\item{G}{The number of profiles for the alternative hypothesis (compared against G-1).}

\item{model}{An integer (1 to 6) specifying the variance-covariance parameterization.}

\item{n_samples}{Number of bootstrap samples. Default is 50 for speed; 200+ is recommended for publications.}

\item{n_starts}{Number of starts for the EM algorithm execution.}
}
\value{
A list containing the observed LRT statistic, the vector of bootstrap replicates, and the empirical p-value.
}
\description{
Compares a robust LPA model with G profiles against a null model with G-1 profiles
using parametric bootstrapping. Supports FIML simulation conditions.
}
\examples{
# Fast demonstration of the robust BLRT
data(iris)
blrt_res <- blrt_robust(iris[1:30, 1:2], G = 2, model = 1, n_samples = 2, n_starts = 1)
# Print the summary of the results
blrt_res
}
