View source: R/sim.data.TIRT.R
| sim.data.TIRT | R Documentation |
Generates forced-choice pairwise comparison data under the Thurstonian
IRT framework. Each statement loads on exactly one latent dimension;
pairwise latent differences with probit link determine binary outcomes.
Supports RANK, MOLE, and PICK response types. For each pair (i,k),
the simulated comparison uses
-\gamma_{ik} + \lambda_i q_i'\theta_j -
\lambda_k q_k'\theta_j + \epsilon_i - \epsilon_k, with
\epsilon_i \sim N(0,\psi_i^2).
sim.data.TIRT(
N.person = 1000,
N.block = 10,
I.block = 2,
D = 3,
fc.type = "RANK",
control = NULL
)
N.person |
Integer; number of persons (default: 1000). |
N.block |
Integer; number of blocks (default: 10). |
I.block |
Integer; items per block (default: 2). |
D |
Integer; number of latent dimensions (default: 3, >= 2). |
fc.type |
Character; |
control |
Optional list with entries |
An object of class "data.TIRT" containing data,
response, theta, par, Q.matrix,
block.items, Corr, gamma.matrix, lambda,
psi2, pairs.value, and data-generating arguments.
fit.TIRT, model.TIRT
set.seed(123)
sim <- sim.data.TIRT(N.person = 20, N.block = 3, I.block = 2,
D = 2, fc.type = "RANK")
str(sim$data)
head(sim$response)
dim(sim$Q.matrix)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.