| export_mfrm | R Documentation |
Writes tidy CSV files suitable for import into spreadsheet software or further analysis in other tools.
export_mfrm(
fit,
diagnostics = NULL,
output_dir = ".",
prefix = "mfrm",
tables = c("person", "facets", "summary", "steps", "measures"),
overwrite = FALSE
)
fit |
Output from |
diagnostics |
Optional output from |
output_dir |
Directory for CSV files. Created if it does not exist. |
prefix |
Filename prefix (default |
tables |
Character vector of tables to export. Any subset of
|
overwrite |
If |
Invisibly, a data.frame listing written files with columns
Table and Path.
{prefix}_person_estimates.csvPerson ID, Estimate, SD.
{prefix}_facet_estimates.csvFacet, Level, Estimate, and optionally SE, Infit, Outfit, PTMEA when diagnostics supplied.
{prefix}_fit_summary.csvOne-row model summary.
{prefix}_step_parameters.csvStep/threshold parameters.
{prefix}_measures.csvFull measures table (requires diagnostics).
The returned data.frame tells you exactly which files were written and where. This is convenient for scripted pipelines where the output directory is created on the fly.
Fit a model with fit_mfrm().
Optionally compute diagnostics with diagnose_mfrm() when you want enriched facet or measures exports.
Call export_mfrm(...) and inspect the returned Path column.
fit_mfrm, diagnose_mfrm,
as.data.frame.mfrm_fit
toy <- load_mfrmr_data("example_core")
fit <- fit_mfrm(toy, "Person", c("Rater", "Criterion"), "Score",
method = "JML", model = "RSM", maxit = 25)
diag <- diagnose_mfrm(fit, residual_pca = "none")
out <- export_mfrm(
fit,
diagnostics = diag,
output_dir = tempdir(),
prefix = "mfrmr_example",
overwrite = TRUE
)
out$Table
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.