Description Usage Arguments Details Examples

View source: R/bootstrap-LRT.R

Bootstrap the likelihood-ratio test statistic for mixture components

1 2 | ```
bootstrap_lrt(df, ..., n_profiles, variances = "equal",
covariances = "zero")
``` |

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

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

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.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.