View source: R/model-criticism.R
| cv_individuals | R Documentation |
Splits individuals into k folds, fits on training, evaluates on held-out.
cv_individuals(
pre_test,
pst_test,
k = 5L,
priors = NULL,
seed = NULL,
na_as = c("dk", "missing"),
missing_action = c("omit", "error")
)
pre_test |
data.frame of pre-test responses |
pst_test |
data.frame of post-test responses |
k |
integer number of folds |
priors |
optional numeric vector of starting parameters |
seed |
optional integer random seed |
na_as |
classification of NA responses |
missing_action |
structural missingness handling |
list with fold_results, mean_ll, total_ll, perplexity, se
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.