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
2
bootstrap_lrt(df, ..., n_profiles, variances = "equal",
  covariances = "zero")

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

variances

how the variable variances are estimated; defaults to "equal" (to be constant across profiles); other option is "varying" (to be varying across profiles)

covariances

how the variable covariances are estimated; defaults to "zero" (to not be estimated, i.e. for the covariance matrix to be diagonal); other options are "varying" (to be varying across profiles) and "equal" (to be constant across profiles)

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 Oct. 13, 2018, 6:54 p.m.