cbm.wpm1.sort: Sort the given items by their value to the simulee according...

Description Usage Arguments Value See Also Examples

Description

The 'wpm1' algorithm is the same algorithm as 'wpm', but optimized to run faster for tests containing only discrete single item modules.

Usage

1
cbm.wpm1.sort(eligibleModuleIndices, simuleeOut, simulation)

Arguments

eligibleModuleIndices

A vector of itempool indices eligible for selection.

simuleeOut

A tibble containing the in-progress simulee test output.

simulation

An object defining the test that is being run.

Value

The eligibleModuleIndices, sorted by their value to the simulee.

See Also

cbm.wpm.sort for general details.

Examples

1
2
3
4
  simulation = initSimulation(readRDS(system.file("example/passage-adaptive-wpm.rds", package = "CATSimulator")))
  simuleeOut = initSimulee(generateSimuleesByTrueTheta(-2, 10001), simulation)
  eligibleModuleIndices = 1:nrow(simulation$modules)
  balancedModuleIndices = cbm.wpm.sort(eligibleModuleIndices, simuleeOut, simulation)

yuehmeir2/CATSimulator documentation built on June 13, 2021, 7:02 p.m.