predict.blca: approximate predictive class probabilities for a new...

View source: R/predict.R

predict.blcaR Documentation

approximate predictive class probabilities for a new observation

Description

approximate predictive class probabilities for a new observation

Usage

## S3 method for class 'blca'
predict(object, dat_pred = NULL, ...)

Arguments

object

An lcm_tree class object; Output from BayesLCA::blca()

dat_pred

a binary matrix with rows for observations and columns for features (of the same dimension as in the training data)

...

Other parameters

Value

a matrix with the same number of rows as dat_pred and K columns (K is the number of latent classes); each row correspond to a vector of predicted probabilities of an observation in each class.


zhenkewu/lotR documentation built on April 24, 2022, 2:36 a.m.