View source: R/api-prediction.R
| summary.mfrm_plausible_values | R Documentation |
Summarize approximate plausible values from fixed-calibration scoring
## S3 method for class 'mfrm_plausible_values'
summary(object, digits = 3, ...)
object |
Output from |
digits |
Number of digits used in numeric summaries. |
... |
Reserved for generic compatibility. |
An object of class summary.mfrm_plausible_values with:
draw_summary: empirical summaries of the sampled values by person
estimates: companion posterior EAP summaries
audit: row-preparation audit
settings: scoring settings
notes: interpretation notes
sample_mfrm_plausible_values()
toy <- load_mfrmr_data("example_core")
keep_people <- unique(toy$Person)[1:18]
toy_fit <- suppressWarnings(
fit_mfrm(
toy[toy$Person %in% keep_people, , drop = FALSE],
"Person", c("Rater", "Criterion"), "Score",
method = "MML",
quad_points = 5,
maxit = 15
)
)
new_units <- data.frame(
Person = c("NEW01", "NEW01"),
Rater = unique(toy$Rater)[1],
Criterion = unique(toy$Criterion)[1:2],
Score = c(2, 3)
)
pv <- sample_mfrm_plausible_values(toy_fit, new_units, n_draws = 3, seed = 1)
summary(pv)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.