calcMargProb | R Documentation |
Calculates the marginal outcome probabilities for a random effects latent class model, by integrating the outcome probability over the random effect. This is performed using Gauss-Hermite quadrature with the number of quadrature points specified for the model fitting.
calcMargProb(object)
object |
randomLCA object |
Returns a data frame containing class, block, outcome, outcomep (outcome probability).
Ken Beath
dentistry.lcarandom <- randomLCA(dentistry[, 1:5], freq = dentistry$freq,
random = TRUE, probit = TRUE, cores = 1)
print(calcMargProb(dentistry.lcarandom))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.