View source: R/model-criticism.R
| posterior_class_probs | R Documentation |
Extracts P(class | response vector) for each individual from an explicitly fitted person/item model.
posterior_class_probs(object)
object |
output from person_item_lca_fit() |
data.frame with columns P_gg, P_gk, P_kk (rows = individuals)
sim <- simulate_lca(n = 100, gk = 0.30, seed = 123, return_classes = TRUE)
fit <- person_item_lca_fit(sim$pre, sim$post)
posteriors <- posterior_class_probs(fit)
head(posteriors)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.