calcMargProb {randomLCA} | R Documentation |
Calculates Marginal Outcome Probabilities
Description
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.
Usage
calcMargProb(object)
Arguments
object |
randomLCA object |
Value
Returns a data frame containing class, block, outcome, outcomep (outcome probability).
Author(s)
Ken Beath
Examples
dentistry.lcarandom <- randomLCA(dentistry[, 1:5], freq = dentistry$freq,
random = TRUE, probit = TRUE, cores = 1)
print(calcMargProb(dentistry.lcarandom))
[Package randomLCA version 1.1-3 Index]