probs.GGUM {GGUM} | R Documentation |
Compute model probabilities for the GGUM
Description
probs.GGUM
computes model probabilities for the GGUM (and
the GUM) for given item and person parameters.
Usage
probs.GGUM(alpha, delta, taus, theta, C)
Arguments
alpha |
A vector of length |
delta |
A vector of length |
taus |
An |
theta |
A vector of length |
C |
|
Value
The function returns an N\times I\times K
array with the
GGUM probabilities, with K=\max{C}+1
. To retrieve the
GUM-based probabilities just constrain alpha to a unit vector of length I
(i.e., alpha = rep(1, I)
). In this case, make sure C
is
constant across items.
Details
This function computes the GGUM-based probabilities for all
(person, item, response category) combinations. For the GGUM formula see
the help for function GGUM
(GGUM
).
Author(s)
Jorge N. Tendeiro, tendeiro@hiroshima-u.ac.jp
Examples
C <- c(3, 3, 3, 5, 5)
gen <- GenData.GGUM(10, 5, C, seed = 456)
gen.alpha <- gen$alpha.gen
gen.delta <- gen$delta.gen
gen.taus <- gen$taus.gen
gen.theta <- gen$theta.gen
# Compute model probabilities for the parameters above:
Ps <- probs.GGUM(gen.alpha, gen.delta, gen.taus, gen.theta, C)
Ps
# In particular, the sum of the probabilities across all response options
# (i.e., the third dimension) should be 1 for all (person, item) combinations:
apply(Ps, 1:2, sum)