grm(data, constrained = FALSE, IRT.param = TRUE, Hessian = FALSE,
start.val = NULL, na.action = NULL, control = list())
data.frame
(that will be converted to a numeric matrix using
data.matrix()
) or a numeric matrix
of manifest variables.TRUE
the model with equal discrimination parameters across items is fitted.
See Examples for more info.TRUE
then the coefficients' estimates are reported under the
usual IRT parameterization. See Details for more info.TRUE
the Hessian matrix is computed."random"
. If a list, each one of its
elements corresponds to each item and should contain a numeric vector with initial values for the
extremity parameters and discriminatina.action
to be used on data
; default NULL
the model uses the available
cases, i.e., it takes into account the observed part of sample units with missing values (valid under MAR
mechanisms if grm
with components,IRT.param = TRUE
.optim()
.optim()
; returned
only if Hessian = TRUE
.X
: a numeric matrix
that contains the observed response patterns, and (ii) obs
: a numeric vector that contains the observed
frequencies for each observed response pattern.Z
: a numeric matrix that contains
the abscissas, and (ii) GHw
: a numeric vector that contains the corresponding weights.constraint
argument.IRT.param
argument.control
argument.na.action
argument.start.val = "random"
.constrained = TRUE
it is assumed that $\beta_i = \beta$ for all $i$.
If IRT.param = TRUE
, then the parameters estimates are reported under the usual IRT parameterization,
i.e., $$\log\left(\frac{\gamma_{ik}}{1-\gamma_{ik}}\right) = \beta_i (z - \beta_{ik}^*),$$ where $\beta_{ik}^* = \beta_{ik} / \beta_i$.
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.coef.grm
,
fitted.grm
,
summary.grm
,
anova.grm
,
plot.grm
,
vcov.grm
,
margins
,
factor.scores
## The Graded Response model for the Science data:
grm(Science[c(1,3,4,7)])
## The Graded Response model for the Science data,
## assuming equal discrimination parameters across items:
grm(Science[c(1,3,4,7)], constrained = TRUE)
## The Graded Response model for the Environment data
grm(Environment)
Run the code above in your browser using DataLab