Mirt
Wraps the mirt R package.
RIrtWrappers.Mirt
— ModuleThis module wraps the mirt
R module. See mirt
on CRAN.
All fit_*
functions return a tuple of the form (item_bank, labels)
where
item_bank
is a concrete subtype ofFittedItemBanks.AbstractItemBank
labels
is aVector{String}
of item labels
If return_raw
is set to true
, the functions will return a tuple of the form (item_bank, labels, irt_model)
where irt_model
is the raw R object.
Any keyword arguments passed to the fit_*
functions are directly to the mirt
function.
RIrtWrappers.Mirt.fit_2pl
— Methodfit_2pl(df; return_raw, kwargs...)
Fit a 2PL model to the data in df
.
Returns a FittedItemBanks.ItemBank2PL
.
RIrtWrappers.Mirt.fit_3pl
— Methodfit_3pl(df; return_raw, kwargs...)
Fit a 3PL model to the data in df
.
Returns a FittedItemBanks.ItemBank3PL
.
RIrtWrappers.Mirt.fit_4pl
— Methodfit_4pl(df; return_raw, kwargs...)
Fit a 4PL model to the data in df
.
Returns a FittedItemBanks.ItemBank4PL
.
RIrtWrappers.Mirt.fit_gpcm
— Methodfit_gpcm(df; return_raw, kwargs...)
Fit a Generalized Partial Credit Model (GPCM) to the data in df
.
Returns a FittedItemBanks.GPCMItemBank
.
RIrtWrappers.Mirt.fit_mirt_2pl
— Methodfit_mirt_2pl(df, dims; return_raw, kwargs...)
Fit a 2PL MIRT model to the data in df
.
Returns a FittedItemBanks.ItemBankMirt2PL
.
RIrtWrappers.Mirt.fit_monopoly
— Methodfit_monopoly(df; return_raw, monopoly_k, kwargs...)
Fit a monotonic polynomial IRT model to the data in df
.
Returns a FittedItemBanks.MonopolyItemBank
.
RIrtWrappers.Mirt.fit_spline
— Methodfit_spline(df; return_raw, spline_args, kwargs...)
Fit a B-spline IRT model to the data in df
.
Returns a FittedItemBanks.BSplineItemBank
.