Extracts item / person parameters from an eRm::PCM() /
eRm::RM() fit. Current eRm person tables use Person Parameter and
Std.Error; historical theta / thetapar estimate labels are also
accepted. Unknown or internally misaligned person-table schemas stop with an
explicit error rather than silently recycling rows. Same caveats as
import_mirt_fit().
Usage
import_erm_fit(fit, model = c("RSM", "PCM", "GPCM"), item_facet = "Item")Arguments
- fit
An object returned by
eRm::PCM(),eRm::RM(), oreRm::RSM().- model
Same as
import_mirt_fit().- item_facet
Name to assign to the item facet.
Examples
# \donttest{
if (requireNamespace("eRm", quietly = TRUE)) {
response_matrix <- matrix(sample(0:3, 60, replace = TRUE), nrow = 20)
colnames(response_matrix) <- paste0("Item", seq_len(ncol(response_matrix)))
fit <- eRm::PCM(response_matrix)
imported <- import_erm_fit(fit, model = "PCM")
imported$summary
}
#> Model Method Source N Persons Facets Categories LogLik AIC BIC Converged
#> 1 PCM CML eRm 20 20 1 NA -34.92457 NA NA TRUE
#> ConvergenceStatus
#> 1 imported
# }
