Learn R Programming

TestDesign (version 1.7.0)

sanitizeModel: (Internal) Sanitize item model names for C++ functions

Description

sanitizeModel is an internal function for sanitizing item model names to be passed onto C++ functions.

Usage

sanitizeModel(model)

Value

sanitizeModel returns a numeric vector, with

  • item_1PL converted to 1

  • item_2PL converted to 2

  • item_3PL converted to 3

  • item_PC converted to 4

  • item_GPC converted to 5

  • item_GR converted to 6

Arguments

model

a vector containing item model names.