lotR_blca | R Documentation |
Simulate data and subject-specific indicators from latent class models
lotR_blca(n, itemprob = 0.5, classprob = 1, fit = NULL)
n |
sample size |
itemprob |
item probabilities |
classprob |
class probabilities |
fit |
fitted object |
a list; x
: data; z
a vector of integer indicators
of class membership.
BayesLCA::blca()
lotR_blca(10,matrix(0.5,nrow=3,ncol=20),c(0.98,0.01,0.01))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.