sim_irt: Helper function to simulate IRT data

View source: R/sim_irt.r

sim_irtR Documentation

Helper function to simulate IRT data

Description

Function to simulate data that can be used to fit IRT models.

Usage

sim_irt(
  n.obs = 100,
  n.items = 10,
  discrimination = 0,
  seed = NULL,
  cut = "random"
)

Arguments

n.obs

Number of observations that should be included in the data set

n.items

Number of items that should be simulated

discrimination

Standard deviation on the log scale

seed

Seed for the random number generation process

cut

Either "random" for a randomized transformation of the model probability matrix into the model 0-1 matrix or an integer value between 0 and 1.

Value

a tibble

Examples

library(ggmirt)

sim_irt(n.obs = 200, n.items = 10)


masurp/ggmirt documentation built on Oct. 14, 2023, 1:16 p.m.