Learn R Programming

randomLCA (version 1.1-4)

calcMargProb: 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)

Value

Returns a data frame containing class, block, outcome, outcomep (outcome probability).

Arguments

object

randomLCA object

Author

Ken Beath

Examples

Run this code
# \donttest{
dentistry.lcarandom <- randomLCA(dentistry[, 1:5], freq = dentistry$freq, 
	random = TRUE, probit = TRUE, cores = 1)
print(calcMargProb(dentistry.lcarandom))
# }

Run the code above in your browser using DataLab