| draw_indicators | R Documentation |
Draw binary indicators given true class memberships
draw_indicators(X, rho)
X |
Integer vector of length n. True latent class (1-indexed). |
rho |
T x K matrix. |
An n x K integer matrix of 0/1 values.
rho <- make_rho(0.9)
X <- draw_classes(50, c(1/3, 1/3, 1/3))
draw_indicators(X, rho)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.