View source: R/api-prediction.R
| summary.mfrm_unit_prediction | R Documentation |
Summarize posterior unit scoring output
## S3 method for class 'mfrm_unit_prediction'
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_unit_prediction with:
estimates: posterior summaries by person
audit: row-preparation audit
settings: scoring settings
notes: interpretation notes
predict_mfrm_units()
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)
)
pred_units <- predict_mfrm_units(toy_fit, new_units)
summary(pred_units)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.