Skip to main content

Extract Threshold Parameters of Item Response Models

Description

A class and generic function for representing and extracting the item threshold parameters of a given item response model.

Usage

  threshpar(object, ...)
  ## S3 method for class 'raschmodel'
threshpar(object, type = c("mode", "median", "mean"),
    ref = NULL, alias = TRUE, relative = FALSE, cumulative = FALSE, vcov = TRUE,
    ...)
  ## S3 method for class 'rsmodel'
threshpar(object, type = c("mode", "median", "mean"),
    ref = NULL, alias = TRUE, relative = FALSE, cumulative = FALSE, vcov = TRUE,
    ...)
  ## S3 method for class 'pcmodel'
threshpar(object, type = c("mode", "median", "mean"),
    ref = NULL, alias = TRUE, relative = FALSE, cumulative = FALSE, vcov = TRUE,
    ...)
  ## S3 method for class 'nplmodel'
threshpar(object, type = c("mode", "median", "mean"),
    ref = NULL, alias = TRUE, relative = FALSE, cumulative = FALSE, vcov = TRUE,
    ...)
  ## S3 method for class 'gpcmodel'
threshpar(object, type = c("mode", "median", "mean"),
    ref = NULL, alias = TRUE, relative = FALSE, cumulative = FALSE, vcov = TRUE,
    ...)

Arguments

object a fitted model object whose threshold parameters should be extracted.
type character of length one which determines the type of threshold parameters to return (see details below).
ref a vector of labels or position indices of (relative) threshold parameters or a contrast matrix which should be used as restriction/for normalization. For partial credit models, argument ref can also be a list of contrasts. If NULL (the default), for all models except models etimated via MML, the relative threshold parameters are centered around their item-specific means and the absolute threshold parameters are centered around their global mean. For models estimated via MML (nplmodels and gpcmodels), the parameters are by default identified via the distributional parameters of the person parameters (mean and variance of a normal distribution). Nevertheless, a restriction on the interval scale can be applied.
alias logical. If TRUE (the default), the aliased parameter is included in the return vector (and in the variance-covariance matrix if vcov = TRUE). If FALSE, it is removed. If the restriction given in ref depends on several parameters, the first parameter of the restriction specified is (arbitrarily) chosen to be removed if alias is FALSE.
relative logical. If set to FALSE (default), absolute item threshold parameters are returned. If set to TRUE, relative item threshold parameters with the contrast specified in argument ref are returned.
cumulative logical. If set to TRUE, cumulative threshold parameters are returned. These correspond to the cumulative sum over the absolute or relative item threshold parameters (after the restriction given in argument ref has been applied).
vcov logical. If TRUE (the default), the (transformed) variance-covariance matrix of the (relative) threshold parameters is attached as attribute vcov. If FALSE, a NA-matrix is attached.
… further arguments which are currently not used.

Details

threshpar is both, a class to represent threshold parameters of item response models as well as a generic function. The generic function can be used to extract the threshold parameters of a given item response model.

For objects of class threshpar, methods to standard generic functions print and coef can be used to print and extract the threshold parameters.

Depending on argument type, different item threshold parameters are returned. For type = “mode”, the returned item threshold parameters correspond to the location on the theta axis where the probability of category \(k\) equals the probability of category \(k-1\). For Rasch and partial credit models, item threshold parameters of this type correspond directly to the estimated absolute item threshold parameters of these models. For type = “median”, the returned item threshold parameters correspond to the location on the theta axis where the probability of choosing category \(k\) or higher, i.e., \(P(X_{ij} >= k)\), equals 0.5. For type = “mean”, the returned absolute item threshold parameters correspond to the location on the theta axis where the expected category response is in the middle between two categories, i.e. 0.5, 1.5, …. An illustration of these threshold parameters can be found on page 104 in Masters & Wright (1995).

Value

A named list with item threshold parameters of class threshpar and additional attributes model (the model name), type (the type of item threshold parameters returned, see details above), ref (the items or parameters used as restriction/for normalization), relative (whether relative or absolute item threshold parameters are returned), cumulative (whether the cumulative item threshold parameters are returned), alias (either FALSE or a named character vector or list with the removed aliased parameters), and vcov (the estimated and adjusted variance-covariance matrix).

References

Masters GN, Wright BD (1997). The Partial Credit Model. In Van der Linden WJ, Hambleton RK (eds.). Handbook of Modern Item Response Theory. Springer, New York.

See Also

personpar, itempar, discrpar, guesspar, upperpar

Examples

library("psychotools")

o <- options(digits = 4)

## load verbal aggression data
data("VerbalAggression", package = "psychotools")

## fit a rasch model to dichotomized verbal aggression data
raschmod <- raschmodel(VerbalAggression$resp2)

## extract threshold parameters with sum zero restriction
tr <- threshpar(raschmod)
tr
Item response threshold parameters (RM, type mode):
S1WantCurse-C1   S1DoCurse-C1 S1WantScold-C1   S1DoScold-C1 S1WantShout-C1 
       -1.3834        -1.3834        -0.7307        -0.5566        -0.2491 
  S1DoShout-C1 S2WantCurse-C1   S2DoCurse-C1 S2WantScold-C1   S2DoScold-C1 
        0.6981        -1.9093        -1.0367        -0.8727        -0.1131 
S2WantShout-C1   S2DoShout-C1 S3WantCurse-C1   S3DoCurse-C1 S3WantScold-C1 
       -0.1810         1.3120        -0.6955         0.0403         0.5136 
  S3DoScold-C1 S3WantShout-C1   S3DoShout-C1 S4WantCurse-C1   S4DoCurse-C1 
        1.3348         1.3577         2.8709        -1.2450        -0.8727 
S4WantScold-C1   S4DoScold-C1 S4WantShout-C1   S4DoShout-C1 
        0.1779         0.2126         0.8711         1.8402 
## compare to item parameters (again with sum zero restriction)
ip <- itempar(raschmod)
ip
Item response item parameters (RM):
S1WantCurse   S1DoCurse S1WantScold   S1DoScold S1WantShout   S1DoShout 
    -1.3834     -1.3834     -0.7307     -0.5566     -0.2491      0.6981 
S2WantCurse   S2DoCurse S2WantScold   S2DoScold S2WantShout   S2DoShout 
    -1.9093     -1.0367     -0.8727     -0.1131     -0.1810      1.3120 
S3WantCurse   S3DoCurse S3WantScold   S3DoScold S3WantShout   S3DoShout 
    -0.6955      0.0403      0.5136      1.3348      1.3577      2.8709 
S4WantCurse   S4DoCurse S4WantScold   S4DoScold S4WantShout   S4DoShout 
    -1.2450     -0.8727      0.1779      0.2126      0.8711      1.8402 
all.equal(coef(tr), coef(ip))
[1] "Names: 24 string mismatches"
## rating scale model example
rsmod <- rsmodel(VerbalAggression$resp)
trmod <- threshpar(rsmod, type = "mode")
trmed <- threshpar(rsmod, type = "median")
trmn <- threshpar(rsmod, type = "mean")

## compare different types of threshold parameters
cbind("Mode" = coef(trmod, type = "vector"),
 "Median" = coef(trmod, type = "vector"),
 "Mean" = coef(trmn, type = "vector"))
                   Mode   Median     Mean
S1WantCurse-C1 -1.36551 -1.36551 -0.63583
S1WantCurse-C2 -0.78469 -0.78469  1.21667
S1DoCurse-C1   -1.27784 -1.27784 -0.54819
S1DoCurse-C2   -0.69702 -0.69702  1.30434
S1WantScold-C1 -0.95781 -0.95781 -0.22816
S1WantScold-C2 -0.37699 -0.37699  1.62440
S1DoScold-C1   -0.74918 -0.74918 -0.01953
S1DoScold-C2   -0.16836 -0.16836  1.83301
S1WantShout-C1 -0.48394 -0.48394  0.24574
S1WantShout-C2  0.09688  0.09688  2.09825
S1DoShout-C1    0.13116  0.13116  0.86081
S1DoShout-C2    0.71198  0.71198  2.71335
S2WantCurse-C1 -1.57926 -1.57926 -0.84961
S2WantCurse-C2 -0.99845 -0.99845  1.00292
S2DoCurse-C1   -1.11091 -1.11091 -0.38126
S2DoCurse-C2   -0.53009 -0.53009  1.47126
S2WantScold-C1 -1.01776 -1.01776 -0.28811
S2WantScold-C2 -0.43694 -0.43694  1.56439
S2DoScold-C1   -0.41863 -0.41863  0.31102
S2DoScold-C2    0.16219  0.16219  2.16355
S2WantShout-C1 -0.53396 -0.53396  0.19567
S2WantShout-C2  0.04686  0.04686  2.04823
S2DoShout-C1    0.59875  0.59875  1.32841
S2DoShout-C2    1.17957  1.17957  3.18094
S3WantCurse-C1 -0.70132 -0.70132  0.02833
S3WantCurse-C2 -0.12050 -0.12050  1.88086
S3DoCurse-C1   -0.15887 -0.15887  0.57078
S3DoCurse-C2    0.42194  0.42194  2.42328
S3WantScold-C1  0.14953  0.14953  0.87919
S3WantScold-C2  0.73035  0.73035  2.73172
S3DoScold-C1    0.72406  0.72406  1.45372
S3DoScold-C2    1.30488  1.30488  3.30625
S3WantShout-C1  0.77736  0.77736  1.50703
S3WantShout-C2  1.35818  1.35818  3.35956
S3DoShout-C1    1.93477  1.93477  2.66442
S3DoShout-C2    2.51559  2.51559  4.51694
S4WantCurse-C1 -1.05771 -1.05771 -0.32806
S4WantCurse-C2 -0.47689 -0.47689  1.52445
S4DoCurse-C1   -0.85739 -0.85739 -0.12774
S4DoCurse-C2   -0.27657 -0.27657  1.72479
S4WantScold-C1 -0.19072 -0.19072  0.53893
S4WantScold-C2  0.39009  0.39009  2.39144
S4DoScold-C1   -0.13472 -0.13472  0.59493
S4DoScold-C2    0.44610  0.44610  2.44750
S4WantShout-C1  0.26366  0.26366  0.99331
S4WantShout-C2  0.84448  0.84448  2.84584
S4DoShout-C1    1.04642  1.04642  1.77607
S4DoShout-C2    1.62724  1.62724  3.62860
if(requireNamespace("mirt")) {
## fit a partial credit model and a generalized partial credit model
pcmod <- pcmodel(VerbalAggression$resp)
gpcmod <- gpcmodel(VerbalAggression$resp)

## extract the threshold parameters with different default restrictions and
## therefore incompareable scales
tp <- threshpar(pcmod)
tg <- threshpar(gpcmod)
plot(unlist(tp), unlist(tg), xlab = "PCM", ylab = "GPCM")
abline(a = 0, b = 1)

## extract the threshold parameters with the first as the reference leading
## to a compareable scale visualizing the differences due to different
## discrimination parameters
tp <- threshpar(pcmod, ref = 1)
tg <- threshpar(gpcmod, ref = 1)
plot(unlist(tp), unlist(tg), xlab = "PCM", ylab = "GPCM")
abline(a = 0, b = 1)

options(digits = o$digits)
}