Learn R Programming

mirtCAT (version 1.2)

computeCriteria: Compute the values given the criteria and internal objects

Description

A function that returns a vector of evaluated criteria for each respective item in the test bank. Note that criteria values are returned such that the maximum value always represents the most optimal item (e.g., maximum information). In cases where the minimum value is typically selected (e.g., minimum variance) all values are multiplied by -1 to turn it into a maximization problem.

Usage

computeCriteria(x, criteria, person = NULL, test = NULL, design = NULL)

Arguments

x
an object of class 'mirtCAT_design' returned from the mirtCAT function when passing design_elements = TRUE
criteria
item selection criteria (see mirtCAT's criteria input)
person
(required when x is missing) internal person object. To be used when customNextItem function has been defined
test
(required when x is missing) internal test object. To be used when customNextItem function has been defined
design
(required when x is missing) internal design object. To be used when customNextItem function has been defined

Value

a vector of criteria values for each respective item

See Also

mirtCAT, updateDesign, extract.mirtCAT, findNextItem

Examples

Run this code
## Not run: 
# # test defined in mirtCAT help file, first example
# CATdesign <- mirtCAT(df, mod, design_elements = TRUE)
# 
# computeCriteria(CATdesign, criteria = 'MI')
# computeCriteria(CATdesign, criteria = 'MEI')
# 
# ## End(Not run)

Run the code above in your browser using DataLab