Description Usage Arguments Examples
Generate simulation binary data in IRT.
1 2 3 4 5 6 7 8 9 10 11 |
theta |
theta vector |
a |
slope parameter. Default is |
b |
location parameter. Default is |
c |
asymptote parameter. Default is |
phi |
vector of hyperparameter of phi in GIRT model. Default is |
para |
data.frame. format is same to output parameter data.frame generated by |
item |
Character. item code. |
power |
a power of probability of NA. for example power = 1/5 |
D |
a factor constant. |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | # single test data: subjects=3,000 and item=30, 2PLM
set.seed(0204)
theta <- rnorm(3000)
a <- rlnorm(30, sdlog = 0.25)
b <- rnorm(30)
#sim_data_2 <- irtfun2::sim_gen(theta=theta, b=b, a=a)
# GIRT estimated parameter
set.seed(0204)
theta <- rnorm(3000)
phi <- rinvchi(3000, max = 2)
a <- rlnorm(30, sdlog = 0.25)
b <- rnorm(30)
#sim_dat_girt <- sim_gen(theta=theta, phi=phi, a=a, b=b)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.