generate_item {irt} | R Documentation |
Generate a random Item object
Description
Generate a random Item object
Usage
generate_item(model = "3PL", n_categories = 4, se = NULL, ...)
Arguments
model |
The model of the Item object. |
n_categories |
For polytomous models, the number of categories for an 'item' object. |
se |
The values of parameter standard errors, i.e. a list
object with elements named as parameter names (excluding If the value is |
... |
Additional parameters passed to |
Value
An Item-class
object
Author(s)
Emre Gonulates
Examples
# By default, a '3PL' model Item generated
generate_item()
# Generate item pools for other models
generate_item("Rasch")
generate_item("1PL")
generate_item("2PL")
generate_item("4PL")
# Polytomous items
generate_item("GRM")
generate_item("GPCM")
generate_item("PCM")
generate_item("GPCM2")
# Different number of categories
generate_item("GRM", n_categories = 2)
generate_item("GPCM", n_categories = 5)
# Generate standard errors for item parameters
generate_item(se = TRUE)
[Package irt version 0.2.9 Index]