sim: Simulate the Administration of Multistage Tests

Description Usage Arguments Details Value Examples

Description

mst_sim simulates the administration of the assembled MST panel(s)

Usage

1
2
3
4
5
6
7
## S3 method for class 'mst_sim'
print(x, ...)

## S3 method for class 'mst_sim'
plot(x, ...)

mst_sim(x, true, rdp = NULL, estimator = model_mixed_eap, ...)

Arguments

x

the assembled MST object

...

additional option/control parameters

true

the true theta parameter (numeric)

rdp

routing decision points (list)

estimator

the estimator of the ability parameter (function)

Details

Use theta to set the initial theta, panel to select the MST panel, prior to set the prior for theta estimation, bounds to set the bounds of theta estimation, and D to set the scaling constant.

Value

a list of true and estimated ability theta, administered items, and end-of-stage statistics

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
## assemble a MST
items <- Rirt::model_mixed_gendata(1, n_3pl=150)$items
x <- mst(items, "1-3", 2, 'topdown', len=20, max_use=1)
x <- mst_objective(x, -1, indices=1)
x <- mst_objective(x,  0, indices=2)
x <- mst_objective(x,  1, indices=3)
x <- mst_stage_length(x, 1:2, min=5)
x <- mst_assemble(x, 'lpsolve', time_limit=2)

sim1 <- mst_sim(x, true=.5)
print(sim1)
plot(sim1)

sim2 <- mst_sim(x, true=-.5, rdp=list('stage2'=c(-.44, .44)))
print(sim2)
plot(sim2)

xluo11/Rmst documentation built on Nov. 5, 2019, 12:29 p.m.