Calculate perplexity from individual-level data
perplexity_individuals(
lca_result,
pre_test,
pst_test,
per_individual = FALSE,
na_as = c("dk", "missing"),
missing_action = c("omit", "error")
)
Arguments
- lca_result
output from lca_cor() or item_lca_fit()
- pre_test
data.frame of pre-test responses
- pst_test
data.frame of post-test responses
- per_individual
logical; return per-individual perplexity?
- na_as
classification of NA responses
- missing_action
structural missingness handling
Value
numeric scalar or vector