| write_mfrm_residual_file | R Documentation |
Write a standalone residual file
write_mfrm_residual_file(
fit,
diagnostics = NULL,
path,
format = c("csv", "tsv"),
digits = 4,
overwrite = FALSE,
include_probabilities = FALSE
)
fit |
Output from |
diagnostics |
Optional output from |
path |
Output file path. |
format |
File format: |
digits |
Rounding digits for numeric columns. |
overwrite |
If |
include_probabilities |
If |
The exported table is observation-level and model-native. It includes the observed score, expected score, residual, standardized residual, variance, score information, observed-category probability, and modeled person measure when those quantities are available.
This writer is separate from facets_output_file_bundle() because it is a
direct analysis handoff rather than a legacy graph/score bundle.
A bundle with table, summary, written_files, and settings.
diagnose_mfrm(), facets_output_file_bundle(),
write_mfrm_subset_file()
toy <- load_mfrmr_data("example_core")
fit <- fit_mfrm(toy, "Person", c("Rater", "Criterion"), "Score",
method = "JML", maxit = 30)
diag <- diagnose_mfrm(fit, residual_pca = "none")
path <- tempfile(fileext = ".csv")
out <- write_mfrm_residual_file(fit, diag, path, overwrite = TRUE)
out$written_files
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.