gpcm {ltm} | R Documentation |
Generalized Partial Credit Model - Polytomous IRT
Description
Fits the Generalized Partial Credit model for ordinal polytomous data, under the Item Response Theory approach.
Usage
gpcm(data, constraint = c("gpcm", "1PL", "rasch"), IRT.param = TRUE,
start.val = NULL, na.action = NULL, control = list())
Arguments
data |
a |
constraint |
a character string specifying which version of the Generalized Partial Credit Model to fit. See Details and Examples for more info. |
IRT.param |
logical; if |
start.val |
a list of starting values or the character string |
na.action |
the |
control |
a named list of control values with components,
|
Details
The Generalized Partial Credit Model is an IRT model, that can handle ordinal manifest variables. This model was discussed by Masters (1982) and it was extended by Muraki (1992).
The model is defined as follows
P_{ik}(z) = \frac{\exp \sum \limits_{c = 0}^k \beta_i (z - \beta_{ic}^*)}{
\sum \limits_{r = 0}^{m_i} \exp \sum \limits_{c = 0}^r \beta_i (z - \beta_{ic}^*)},
where P_{ik}(z)
denotes the
probability of responding in category k
for item i
, given the latent ability z
, \beta_{ic}^*
are the item-category
parameters, \beta_i
is the discrimination parameter, m_i
is the number of categories for item i
, and
\sum \limits_{c = 0}^0 \beta_i (z - \beta_{ic}^*) \equiv 0.
If constraint = "rasch"
, then the discrimination parameter \beta_i
is assumed equal for all items and fixed at one. If
constraint = "1PL"
, then the discrimination parameter \beta_i
is assumed equal for all items but is estimated.
If constraint = "gpcm"
, then each item has its one discrimination parameter \beta_i
that is estimated. See
Examples for more info.
If IRT.param = FALSE
, then the linear predictor is of the form \beta_i z + \beta_{ic}
.
The fit of the model is based on approximate marginal Maximum Likelihood, using the Gauss-Hermite quadrature rule for the approximation of the required integrals.
Value
An object of class gpcm
with components,
coefficients |
a named list with components the parameter values at convergence for each item. |
log.Lik |
the log-likelihood value at convergence. |
convergence |
the convergence identifier returned by |
hessian |
the approximate Hessian matrix at convergence. |
counts |
the number of function and gradient evaluations used by the quasi-Newton algorithm. |
patterns |
a list with two components: (i) |
GH |
a list with two components used in the Gauss-Hermite rule: (i) |
max.sc |
the maximum absolute value of the score vector at convergence. |
constraint |
the value of the |
IRT.param |
the value of the |
X |
a copy of the response data matrix. |
control |
the values used in the |
na.action |
the value of the |
call |
the matched call. |
Warning
In case the Hessian matrix at convergence is not positive definite try to re-fit the model by specifying the starting values or using
start.val = "random"
.
Note
gpcm()
can also handle binary items and can be used instead of rasch
and ltm
though it is less
efficient. However, gpcm()
can handle a mix of dichotomous and polytomous items that neither rasch
nor
ltm
can.
Author(s)
Dimitris Rizopoulos d.rizopoulos@erasmusmc.nl
References
Masters, G. (1982). A Rasch model for partial credit scoring. Psychometrika, 47, 149–174.
Muraki, E. (1992). A generalized partial credit model: application of an EM algorithm. Applied Psychological Measurement, 16, 159–176.
See Also
coef.gpcm
,
fitted.gpcm
,
summary.gpcm
,
anova.gpcm
,
plot.gpcm
,
vcov.gpcm
,
GoF.gpcm
,
margins
,
factor.scores
Examples
## The Generalized Partial Credit Model for the Science data:
gpcm(Science[c(1,3,4,7)])
## The Generalized Partial Credit Model for the Science data,
## assuming equal discrimination parameters across items:
gpcm(Science[c(1,3,4,7)], constraint = "1PL")
## The Generalized Partial Credit Model for the Science data,
## assuming equal discrimination parameters across items
## fixed at 1:
gpcm(Science[c(1,3,4,7)], constraint = "rasch")
## more examples can be found at:
## http://wiki.r-project.org/rwiki/doku.php?id=packages:cran:ltm#sample_analyses