BayesLCA-package {BayesLCA}R Documentation

Bayesian Latent Class Analysis

Description

Bayesian latent class analysis using several different methods.

Details

Package: BayesLCA
Type: Package
Version: 1.4
Date: 2015-04-09
License: GPL (>= 2)
LazyLoad: yes

Author(s)

Arthur White and Brendan Murphy Maintainer: Arthur White <arthur.white@ucdconnect.ie>

References

Arthur White, Thomas Brendan Murphy (2014). BayesLCA: An R Package for Bayesian Latent Class Analysis." Journal of Statistical Software, 61(13), 1-28. URL: http://www.jstatsoft.org/v61/i13/.

Examples

type1 <- c(0.8, 0.8, 0.2, 0.2)
type2 <- c(0.2, 0.2, 0.8, 0.8)
x <- rlca(1000, rbind(type1, type2), c(0.4,0.6))
fit.em <- blca.em(x, 2)
plot(fit.em, which=1)
print(fit.em)
summary(fit.em)
data(Alzheimer)
fit.vb <- blca(Alzheimer, 2, method="vb")
par(mfrow=c(3,3))
plot(fit.vb, which=3:4)
summary(fit.vb)
par(mfrow=c(1,1))

[Package BayesLCA version 1.9 Index]