LCTMtoolkit | R Documentation |
LCTMtoolkit
The function LCTMtoolkit computes a selection of model adequacy tests, including the APPA (average posterior probability of assignment), the OCC (odds of correct classification), entropy E, Relative entropy (E_k), odds of correct classification is the ratio of the odds of classification based on the maximum posterior probablity classification rule and the estimated class membership proportions (pi_k)
LCTMtoolkit(model)
model |
the models to be compared which is the output from hlme() R model or model is the output of SASmodelbuilder(oe, os, op, of) passed through it |
A selection of model adequacy tests, including the APPA (average posterior probability of assignment), the OCC (odds of correct classification), entropy $E$, Relative entropy ($E_k$),
https://bmjopen.bmj.com/content/8/7/e020683
data(bmi_long, package='LCTMtools') require(lcmm) model2class <- lcmm::hlme(fixed = bmi ~ age, mixture= ~ age, random= ~ age, nwg=TRUE, ng=2, subject="id", data=data.frame(bmi_long[1:500, ])) postprob(model2class) LCTMtoolkit(model2class)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.