Generates observed cognitive and choice data from the IRT-Thurstone model.
Generate_Choice(
N,
J,
K,
theta,
as,
bs,
zeta,
gamma,
X,
W,
subject_ids,
unique_subject_ids
)
An integer
for the number of observations.
An integer
for the number of items.
An integer
for the number of paired comparisons.
A vector
of latent cognitive variables.
A vector
of length J with item discriminations.
A vector
of length J with item locations.
A matrix
with dimensions N x V containing
random parameter estimates.
A vector
with dimensions P x 1 containing
fixed parameter estimates, where \(P = P_1 + P_2\)
A matrix
with dimensions N*K x P_1 containing
fixed effect design matrix without theta.
A matrix
with dimensions N*K x V containing
random effect variables.
A vector
with length NK x 1 containing
subject-choice IDs.
A vector
with length N x 1 containing
unique subject IDs.
A list
that contains:
Y
A matrix
of dimension N by J
C
A vector
of length NK