Learn R Programming

Rmst (version 0.0.3)

print.mst_sim: Simulate the Administration of Multistage Tests

Description

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

Usage

# S3 method for mst_sim
print(x, ...)

# S3 method for 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)

Value

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

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.

Examples

Run this code
# NOT RUN {
set.seed(123456)
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=30)

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)
# }

Run the code above in your browser using DataLab