bootstrap_lrt: Bootstrap the likelihood-ratio test statistic for mixture...

Description Usage Arguments Details Examples

View source: R/bootstrap_LRT.R

Description

Bootstrap the likelihood-ratio test statistic for mixture components

Usage

1
bootstrap_lrt(df, ..., n_profiles, model = 1)

Arguments

df

data.frame with two or more columns with continuous variables

...

unquoted variable names separated by commas

n_profiles

the number of profiles (or mixture components) to be estimated

model

the mclust model to explore: 1 (varying means, equal variances, and residual covariances fixed to 0); 2 (varying means, equal variances and covariances; 3 (varying means and variances, covariances fixed to 0), 4 (varying means and covariances, equal variances; can only be specified in Mplus); 5 (varying means, equal variances, varying covariances); and 6 (varying means, variances, and covariances), in order least to most freely-estimated; see the introductory vignette for more information

Details

Bootstrap the p-values for the likelihood-ratio test statistic for the number of mixture components for an mclust model.

Examples

1
2
3
4
5
6
7
## Not run: 
d <- pisaUSA15
d <- dplyr::sample_n(d, 200)
bootstrap_lrt(d,
              broad_interest, enjoyment, self_efficacy)

## End(Not run)

jrosen48/tidyLPA documentation built on May 3, 2018, 5:31 a.m.