outcome.probs {randomLCA}R Documentation

Extract outcome probabilities for randomLCA object

Description

Extract outcome probabilities and confidence intervals for a randomLCA object.

Usage

## S3 method for class 'randomLCA':
outcome.probs(object, level = 0.95, boot=FALSE, type="perc", R=ifelse(type=="perc",999,200),...)

Arguments

object randomLCA object
level confidence interval
boot use parametric bootstrap to obtain confidence interval
type type of bootstrap confidence intervals to use "perc", "normal" and "basic" are valid, see boot.ci for description. There is a risk of excessively large confidence limits when using other than "perc"
R replications for parametric bootstrap
... additional argument; currently none is used.

Details

Confidence intervals are calculated based on asymptotic normality of the estimates transformed by either the inverse of the probit or logistic, or using parametric bootstrap. The asymptotic confidence intervals are currently only available for models without random effects.

Author(s)

Ken Beath

Examples

# dentist data
data(dentistry)
# standard latent class with 2 classes
dentistry.lca2 <- randomLCA(dentistry[,1:5],freq=dentistry$freq,nclass=2)
print(outcome.probs(dentistry.lca2))

[Package randomLCA version 0.7-1 Index]