| panel_info | R Documentation |
Given a binary transition matrix that defines the Multistage-Adaptive Test (MST) structure, this function extracts key panel information: the module configuration by stage, all valid test pathways, the number of modules per stage, and the total number of stages.
panel_info(route_map)
route_map |
A binary square matrix defining the MST transition structure,
where a value of 1 at row i, column j indicates that a test
taker can be routed from module i to module j. This is
equivalent to the |
The function identifies stage-1 modules as those with no incoming transitions
(column sum of route_map equals zero). It then traverses the route map
stage by stage, collecting modules reachable from the previous stage. All
logically possible pathways are enumerated via expand.grid(), and
pathways that violate the transition constraints in route_map are
removed. The remaining pathways are sorted and returned as a matrix.
A named list with four elements:
configA named list of length equal to the number of stages.
Each element is an integer vector of module indices belonging to that
stage. Names are "stage.1", "stage.2", etc.
pathwayAn integer matrix of all valid test pathways, with
one row per pathway and one column per stage. Row names are
"path.1", "path.2", etc. Columns correspond to the module
index administered at each stage.
n.moduleA named integer vector giving the number of modules in each stage.
n.stageAn integer scalar giving the total number of stages.
Magis, D., Yan, D., & von Davier, A. A. (2017). Computerized adaptive and multistage testing with R: Using packages catR and mstR. Springer.
reval_mst, run_mst
# Use the 1-3-3 simMST panel route map
route_map <- simMST$route_map
pinfo <- panel_info(route_map)
# Stage configuration: which modules belong to which stage
pinfo$config
# All valid pathways (rows = pathways, columns = stages)
pinfo$pathway
# Number of modules per stage
pinfo$n.module
# Total number of stages
pinfo$n.stage
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.