lotR_blca: Simulate data and subject-specific indicators from latent...

lotR_blcaR Documentation

Simulate data and subject-specific indicators from latent class models

Description

Simulate data and subject-specific indicators from latent class models

Usage

lotR_blca(n, itemprob = 0.5, classprob = 1, fit = NULL)

Arguments

n

sample size

itemprob

item probabilities

classprob

class probabilities

fit

fitted object

Value

a list; x: data; z a vector of integer indicators of class membership.

See Also

BayesLCA::blca()

Examples


lotR_blca(10,matrix(0.5,nrow=3,ncol=20),c(0.98,0.01,0.01))


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