| load_mfrmr_data | R Documentation |
Load a packaged simulation dataset
load_mfrmr_data(
name = c("example_core", "example_bias", "study1", "study2", "combined",
"study1_itercal", "study2_itercal", "combined_itercal")
)
name |
Dataset key. One of values from |
This helper is useful in scripts/functions where you want to choose a dataset
by string key instead of calling data() manually.
All returned datasets include the core long-format columns
Study, Person, Rater, Criterion, and Score.
Some datasets, such as the packaged documentation examples, also include
auxiliary variables like Group for DIF/bias demonstrations.
A data.frame in long format.
The return value is a plain long-format data.frame, ready for direct use
in fit_mfrm() without additional reshaping.
list valid names with list_mfrmr_data().
load one dataset key with load_mfrmr_data(name).
fit a model with fit_mfrm() and inspect with summary() / plot().
list_mfrmr_data(), ej2021_data
data("mfrmr_example_core", package = "mfrmr")
head(mfrmr_example_core)
d <- load_mfrmr_data("example_core")
fit <- fit_mfrm(
data = d,
person = "Person",
facets = c("Rater", "Criterion"),
score = "Score",
method = "JML",
maxit = 25
)
summary(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.