Description Usage Arguments Value References Examples
View source: R/calc_functions.R
Implements the ad-hoc adjusted likelihood ratio test (LRT) described in Formula 15 of Lo, Mendell, & Rubin (2001), or LMR LRT.
1 | calc_lrt(n, null_ll, null_param, null_classes, alt_ll, alt_param, alt_classes)
|
n |
Integer. Sample size |
null_ll |
Numeric. Log-likelihood of the null model. |
null_param |
Integer. Number of parameters of the null model. |
null_classes |
Integer. Number of classes of the null model. |
alt_ll |
Numeric. Log-likelihood of the alternative model. |
alt_param |
Integer. Number of parameters of the alternative model. |
alt_classes |
Integer. Number of classes of the alternative model. |
A numeric vector containing the likelihood ratio LR, the ad-hoc corrected LMR, degrees of freedom, and the LMR p-value.
Lo Y, Mendell NR, Rubin DB. Testing the number of components in a normal mixture. Biometrika. 2001;88(3):767–778. doi:10.1093/biomet/88.3.767
1 | calc_lrt(150L, -741.02, 8, 1, -488.91, 13, 2)
|
You can use the function citation('tidyLPA') to create a citation for the use of {tidyLPA}.
Mplus is not installed. Use only package = 'mclust' when calling estimate_profiles().
Warning message:
In system2("type", args = "mplus", stdout = FALSE, stderr = FALSE) :
error in running command
Lo-Mendell-Rubin ad-hoc adjusted likelihood ratio rest:
LR = 504.220, LMR LR (df = 5) = 472.769, p < 0.001
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.