coef.mdf: Generic coef method for S3 class "mdf" objects.
Description
This function extracts person and/or item parameters obtained after fitting MUDFOLD to binary preferential-choice data.
Usage
# S3 method for mdf
coef(object, type, ...)
Value
A vector when type="persons" or type="items". Alist when type="all".
Arguments
object
: A fitted object of class "mdf" obtained from the mudfold function.
type
: Argument that controls the type of parameters to be returned. If type="persons" (default), a vector with the person parameters is returned. When type="items" then a vector with the item ranks obtained by the MUDFOLD item selection algorithm is returned. If type="all" then a list with both person and item coefficients is returned to the user.
...
: not in use at the current version of the package.
## load the ANDRICH datadata("ANDRICH")
## fit a MUDFOLD scale to the ANDRICH datamudf_andrich <- mudfold(ANDRICH)
## obtain the parameters from the fitted objectcoef(mudf_andrich)