BayesLCA is an R package for Bayesian latent class analysis using multiple methods.
BayesLCA is an R package that implements Bayesian latent class analysis with several methods including EM, Gibbs sampling, bootstrapping, and variational Bayes. It provides functions for model fitting, diagnostics, and visualization of latent class structures in binary data.
The package includes functions such as blca for model fitting, blca.em for EM algorithm implementation, blca.gibbs for Gibbs sampling, and blca.boot for bootstrap estimation. It also contains utilities for data handling, plotting, and conversion to mcmc objects for compatibility with other statistical packages.
| Package Type | Package |
|---|---|
| Version | 1.9 |
| Date | 2020-05-05 |
| License | GPL (>= 2) |
BayesLCA uses EM algorithm, Gibbs sampling, bootstrapping, and variational Bayes methods.
The data matrix X may take several forms as described in data.blca.