View source: R/sim.data.FCGGUM.R
| sim.data.FCGGUM | R Documentation |
Generates forced-choice ranking data using the GGUM ideal-point model as the
item-level endorsement process. Within-block rankings follow the same
sequential Luce/Plackett mechanism as model.FCGGUM: the
utility for each statement is the logit of its binary GGUM endorsement
probability.
sim.data.FCGGUM(
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 forced-choice blocks (default: 10). |
I.block |
Integer; items per block (default: 2). |
D |
Integer; number of latent dimensions (default: 3, must be >= 2). |
fc.type |
Character; |
control |
Optional list with entries |
An object of class "data.FCGGUM" containing data,
response, theta, par, Q.matrix,
block.items, Corr, patterns, patterns.total,
prob, mask, and data-generating arguments.
fit.FCGGUM, model.FCGGUM
set.seed(123)
sim <- sim.data.FCGGUM(N.person = 20, N.block = 3, I.block = 2,
D = 2, fc.type = "RANK")
str(sim$data)
head(sim$response)
dim(sim$prob)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.