| as.data.frame.mfrm_fit | R Documentation |
Returns all facet-level estimates (person and others) in a single
tidy data.frame. Useful for quick interactive export:
write.csv(as.data.frame(fit), "results.csv").
## S3 method for class 'mfrm_fit'
as.data.frame(x, row.names = NULL, optional = FALSE, ...)
x |
An |
row.names |
Ignored (included for S3 generic compatibility). |
optional |
Ignored (included for S3 generic compatibility). |
... |
Additional arguments (ignored). |
This method is intentionally lightweight: it returns just three columns
(Facet, Level, Estimate) so that the result is easy to
inspect, join, or write to disk.
A data.frame with columns Facet, Level,
Estimate.
Person estimates are returned with Facet = "Person".
All non-person facets are stacked underneath in the same schema.
Fit a model with fit_mfrm().
Convert with as.data.frame(fit) for a compact long-format export.
Join additional diagnostics later if you need SE or fit statistics.
fit_mfrm, export_mfrm
toy <- load_mfrmr_data("example_core")
fit <- fit_mfrm(toy, "Person", c("Rater", "Criterion"), "Score",
method = "JML", model = "RSM", maxit = 25)
head(as.data.frame(fit))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.