config_Static-class {TestDesign}R Documentation

Create a config_Static object

Description

createStaticTestConfig is a config function for creating a config_Static object for Static (fixed-form) test assembly. Default values are used for any unspecified parameters/slots.

Usage

createStaticTestConfig(item_selection = NULL, MIP = NULL)

Arguments

item_selection

a named list containing item selection criteria.

  • method the type of selection criteria. Accepts MAXINFO, TIF, TCC. (default = MAXINFO)

  • info_type the type of information. Accepts FISHER. (default = FISHER)

  • target_location a numeric vector containing the locations of target theta points. (e.g. c(-1, 0, 1)) (default = c(-1.2, 0, 1.2))

  • target_value a numeric vector containing the target values at each theta location. This should have the same length with target_location. Ignored if method is MAXINFO. (default = NULL)

  • target_weight a numeric vector containing the weights for each theta location. This should have the same length with target_location. (default = rep(1, length(target_location))

MIP

a named list containing solver options.

  • solver the type of solver. Accepts Rsymphony, gurobi, lpSolve, Rglpk. (default = LPSOLVE)

  • verbosity verbosity level of the solver. (default = -2)

  • time_limit time limit in seconds. Used in solvers Rsymphony, gurobi, Rglpk. (default = 60)

  • gap_limit search termination criterion. Gap limit in relative scale passed onto the solver. Used in solver gurobi. (default = .05)

  • gap_limit_abs search termination criterion. Gap limit in absolute scale passed onto the solver. Used in solvers Rsymphony. (default = 0.05)

  • obj_tol search termination criterion. The lower bound to use on the minimax deviation variable. Used when item_selection$method is TIF or TCC. (default = 0.05)

  • retry number of times to retry running the solver if the solver returns no solution. Some solvers incorrectly return no solution even when a solution exists. This is the number of attempts to verify that the problem is indeed infeasible in such cases. Set to 0 to not retry. (default = 5)

Value

createStaticTestConfig returns a config_Static object. This object is used in Static.

Examples

cfg1 <- createStaticTestConfig(
  list(
    method = "MAXINFO",
    info_type = "FISHER",
    target_location = c(-1, 0, 1),
    target_weight = c(1, 1, 1)
  )
)

cfg2 <- createStaticTestConfig(
  list(
    method = "TIF",
    info_type = "FISHER",
    target_location = c(-1, 0, 1),
    target_weight = c(1, 1, 1),
    target_value = c(8, 10, 12)
  )
)

cfg3 <- createStaticTestConfig(
  list(
    method = "TCC",
    info_type = "FISHER",
    target_location = c(-1, 0, 1),
    target_weight = c(1, 1, 1),
    target_value = c(10, 15, 20)
  )
)

[Package TestDesign version 1.6.1 Index]