| fit.MGGUM | R Documentation |
Fits a multidimensional generalization of the generalized graded unfolding model (GGUM) to polytomous response data. Unlike dominance (cumulative) IRT models, the MGGUM belongs to the ideal-point (unfolding) model family where the probability of endorsement is highest when the person and item locations match, decreasing as the person moves away in either direction. Two estimation backends are provided: Bayesian MCMC (Stan) and iStEM.
fit.MGGUM(
data,
D = NULL,
Q.matrix = NULL,
length.poly = NULL,
method = c("iStEM", "stan"),
control.model = NULL,
control.method = NULL
)
data |
An |
D |
Integer; number of latent dimensions ( |
Q.matrix |
An optional |
length.poly |
Integer vector (length |
method |
Estimation method: |
control.model |
A named list of model-level hyperparameters for the GGUM unfolding model. Supported entries:
|
control.method |
A named list of method-specific tuning parameters. Common entries (used by both Stan and iStEM):
Stan-specific entries:
iStEM-specific entries:
|
An object of class "MGGUM" containing:
nparNumber of free parameters.
method"stan" or "iStEM".
thetaList with est, se, Rhat
(N \times D).
parList with est, se, Rhat,
free (I \times (2D + K_{max})).
Columns: a1..aD, delta1..deltaD, tau0..tau_{K_{max}-1}.
CorrList with est, se, Rhat
(D \times D).
length.polyPer-item category counts.
logLikMarginal log-likelihood (class "logLik").
Let Y_{ij} \in \{0, 1, \dots, K_i - 1\} be the categorical response
of person j to item i, with K_i \ge 2 categories.
Let \boldsymbol{\theta}_j denote the D-dimensional latent
trait vector.
The category response probability implemented by model.MGGUM,
iStEM, and Stan is the distance-based MGGUM form. Define
r_{ij} =
\left[
\sum_{d=1}^{D} a_{id}^2
\left(\theta_{jd} - \delta_{id}\right)^2
\right]^{1/2},
\qquad
S_i = \sum_{d=1}^{D} a_{id}.
Let \tau_{i0}=0 and
\psi_{ik}=S_i\sum_{v=0}^{k}\tau_{iv}. With
M_i=2K_i-1, the probability of category
k = 0,\dots,K_i-1 is
P(Y_{ij} = k \mid \boldsymbol{\theta}_j) =
\frac{
\exp\{k r_{ij}-\psi_{ik}\} +
\exp\{(M_i-k)r_{ij}-\psi_{ik}\}
}{
\sum_{r=0}^{K_i-1}
\bigl[
\exp\{r r_{ij}-\psi_{ir}\} +
\exp\{(M_i-r)r_{ij}-\psi_{ir}\}
\bigr]
}.
Here a_{id} \ge 0 are discrimination parameters,
\delta_{id} are item-location parameters (signed positive when
q_{id} = 1,
negative when q_{id} = -1), and threshold parameters \tau_{ik}
satisfying \tau_{i0} = 0 and
\tau_{i1} < \tau_{i2} < \dots < \tau_{i,K_i-1} < 0.
Q-matrix sign convention:
q_{id} = 1Active dimension; \delta_{id} > 0
(item located on the positive side of dimension d).
q_{id} = -1Active dimension; \delta_{id} < 0
(item located on the negative side of dimension d).
q_{id} = 0Inactive dimension;
a_{id} = \delta_{id} = 0.
The sign of q_{id} controls the item-location side, not the sign of
the slope. Both a_{id} and |\delta_{id}| reflect the item's
relevance to dimension d.
method = "stan"):Full Bayesian inference via HMC. All parameters are jointly sampled from the posterior distribution.
method = "iStEM"):Improved Stochastic EM with finite-grid block Gibbs person-sampling
and item optimization via L-BFGS-B.
The threshold parameters \tau_{ik} are constrained to maintain
monotonicity during optimization.
Roberts, J. S., Donoghue, J. R., & Laughlin, J. E. (2000). A general item response theory model for unfolding unidimensional polytomous responses. Applied Psychological Measurement, 24(1), 3–32. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1177/01466216000241001")}
Usami, S. (2011). Generalized graded unfolding model with structural equation for subject parameters. Japanese Psychological Research, 53(3), 221–232.
sim.data.MGGUM, get.fit.index.MGGUM,
logLik.MGGUM
sim <- sim.data.MGGUM(N = 20, I = 6, D = 2, length.poly = 4)
fit <- fit.MGGUM(sim$response, D = 2, method = "iStEM",
control.method = list(
vis = FALSE, seed = 123,
M = 2, B = 2, burnin.maxitr = 2,
maxitr = 3, eps1 = 10, eps2 = 10,
estimate.se = FALSE))
head(fit$theta$est)
gof <- get.fit.index(fit)
summary(gof)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.