itemValuesDeviationConstraint creates constraints related to an item parameter/value. autoItemValuesMixMax automatically
determines the appropriate targetValue and then calls itemValuesDeviationConstraint. The function only works for
(dichotomous) dummy indicators with values 0 or 1.
autoItemValuesMinMaxConstraint(
nForms,
itemValues,
testLength = NULL,
allowedDeviation = NULL,
relative = FALSE,
verbose = TRUE,
itemIDs = NULL
)A sparse matrix.
Number of forms to be created.
Item parameter/values for which the sum per test form should be constrained.
to be documented.
Numeric value of length 1. How much deviance is allowed from target values?
Is the allowedDeviation expressed as a proportion?
Should calculated values be reported?
a character vector of item IDs in correct ordering, or NULL.
Two scenarios are possible when automatically determining the target value:
(a) Either items with the selected property could be exactly
distributed across test forms or (b) this is not possible. An example would be 2 test forms and 4 multiple choice items (a) or 2 test
forms and 5 multiple choice items (b). If (a), the tolerance level works exactly as one would expect. If (b) the tolerance level is
adapted, meaning that if tolerance level is 0 in example (b), allowed values are 2 or 3 multiple choice items per test form. For detailed documentation on how the minimum and maximum are calculated
see also computeTargetValues.
autoItemValuesMinMaxConstraint(2, itemValues = c(0, 1, 0, 1))
Run the code above in your browser using DataLab