View source: R/sim.data.FCDCM.R
| sim.data.FCDCM | R Documentation |
Generates forced-choice paired-comparison data from a higher-order
cognitive diagnostic model (DINA/DINO). The continuous higher-order
trait governs attribute mastery probabilities via a logistic link;
two-statement blocks produce binary choices based on attribute
mastery patterns. In each block, selecting the first statement has
probability \eta_0 when its condensed mastery is lower than the
second statement's, 0.5 when they are equal, and
0.5+\eta_{AB} when it is higher.
sim.data.FCDCM(
N.person = 1000,
N.block = 10,
D = 3,
dcm.type = "DINA",
control = NULL
)
N.person |
Integer; number of persons (default: 1000). |
N.block |
Integer; number of forced-choice block pairs (default: 10). |
D |
Integer; number of attributes (default: 3, must be >= 2). |
dcm.type |
Character; |
control |
Optional list with entries |
An object of class "data.FCDCM" containing data,
response, theta, alpha, zeta, par,
Q.matrix, block.items,
prob, and data-generating arguments.
fit.FCDCM, model.FCDCM
set.seed(123)
sim <- sim.data.FCDCM(N.person = 20, N.block = 3, D = 2,
dcm.type = "DINA")
str(sim$data)
head(sim$response)
head(sim$alpha)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.