Learn R Programming

BayesLCA (version 1.9)

summary.blca: Bayesian Latent Class Analysis

Description

Summary method for class "blca".

Usage

# S3 method for blca
summary(object, ...)

Arguments

object

Object of class blca.

Additional arguments to be passed onto lower-level functions at a later stage of development.

Value

A brief summary consisting of two parts: the prior values specified to the model, and model diagnostics specific to the inference method used, such as information about the log-posterior (or lower bound in the case of blca.vb), as well the number of iterations the algorithm ran for, etc..

Examples

Run this code
# NOT RUN {
data(Alzheimer)
summary(blca.em(Alzheimer, 2))
summary(blca.vb(Alzheimer, 2, alpha=2, beta=2, delta=0.5))

# }
# NOT RUN {
(fit.gibbs)<- blca.gibbs(Alzheimer, 2, delta=2)
# }
# NOT RUN {
summary(fit.gibbs)
# }

Run the code above in your browser using DataLab