Description Usage Arguments Value Examples
View source: R/parsnip_style_functions.R
Estimate an IRT model using various engines
1 2 3 4 5 6 7 8 |
data |
An Person x Items matrix or dataframe of dichotomous response values (e.g. correct/incorrect). Rows are persons and columns are items, one row per person, one column per item. No other information allowed. |
rownames |
Optional unique row IDs for the data (i.e. examinee IDs). If omitted, uses 1:nrow(data). |
item_type |
Character. Must be one of "Rasch", "1PL", "2PL" or "3PL". |
engine |
Character. Currently supported engines are "mirt" and "ltm" for Rasch, 1PL, 2PL, and 3PL models. "eRm" is supported for Rasch models only. |
tol |
Numeric. Convergence criterion. Currently only implemented when engine is mirt. |
abs_fit |
Logical. Should absolute fit statistics be calculated? Increases time for estimation. Currently supported engine is "mirt". |
Returns a list of class wizirt. spec is a list of information for the parsnip backend. Printing spec prints a summary of the model run. elapsed contains the time it took the model to run. fit contains the model information:
data is the data passed to the model
model contains model fit information, including:
engine a list with values pkg (the package used for estimation), ver (pkg version), func (functiong used from pkg), and call (call made to pkg)
n_factors the number of factors estimated
item_type the item type passed to wizirt (Rasch, 1PL, 2PL, or 3PL).
estimation a list with information related to convergence. convergence a T/F value of whether the model converged, method the estimation method, criteria the convergence criteria, iterations the number of iterations it took for the model to converge, log_lik the loglikelihood at convergence, abs_fit the absolute fit of the model, df the number of parameters estimated.
parameters a list of estimated parameters. coefficients is a data frame of estimated item-statistics and persons is a data frame of estimated person statistics.
original_object is the object returned from the engine.
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.