View source: R/itemsPerFormConstraint.R
itemsPerFormConstraint | R Documentation |
Creates constraints related to the number of items in each test form.
itemsPerFormConstraint(
nForms,
nItems = NULL,
operator = c("<=", "=", ">="),
targetValue,
whichForms = seq_len(nForms),
itemIDs = NULL
)
nForms |
Number of forms to be created. |
nItems |
Number of items in the item pool [optional to create |
operator |
A character indicating which operator should be used in the
constraints, with three possible values: |
targetValue |
The target value to be used in the constraints. That is, the number of items per form. |
whichForms |
An integer vector indicating which test forms should be constrained. Defaults to all the test forms. |
itemIDs |
a character vector of item IDs in correct ordering, or NULL. |
The number of items per test form is constrained to be either
(a) smaller or equal than (operator = "<="
), (b) equal to
(operator = "="
), or (c) greater or equal than
(operator = ">="
) the chosen value
.
An object of class "constraint"
.
## Constrain the test forms to have exactly five items
itemsPerFormConstraint(3, operator = "=", targetValue = 5,
itemIDs = 1:20)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.