Learn R Programming

BayesLCA (version 1.9)

print.blca: Bayesian Latent Class Analysis

Description

Print a blca object.

Usage

# S3 method for blca
print(x, ...)

Arguments

x

An object of class blca.

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

Value

The blca object itself.

Details

Prints parameter maximum a posteriori (map) and standard deviation estimates. The latter are sometimes unavailable for blca.em objects.

Examples

Run this code
# NOT RUN {
data(Alzheimer)
fit1<- blca(Alzheimer, 2, method="em")
class(fit1)
print(fit1)
fit2<- blca(Alzheimer, 2, method="em", sd=TRUE)
print(fit2) ## Standard Errors also printed

fit3<- blca(Alzheimer, 2, method="vb")
print(fit3) ## Standard Errors as standard
# }

Run the code above in your browser using DataLab