itemsPerFormConstraint {eatATA}R Documentation

Create number of items per test form constraints.

Description

Creates constraints related to the number of items in each test form.

Usage

itemsPerFormConstraint(
  nForms,
  nItems = NULL,
  operator = c("<=", "=", ">="),
  targetValue,
  whichForms = seq_len(nForms),
  itemIDs = NULL
)

Arguments

nForms

Number of forms to be created.

nItems

Number of items in the item pool [optional to create itemIDs automatically].

operator

A character indicating which operator should be used in the constraints, with three possible values: "<=", "=", or ">=". See details for more information.

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.

Details

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.

Value

An object of class "constraint".

Examples

## Constrain the test forms to have exactly five items
itemsPerFormConstraint(3, operator = "=", targetValue = 5,
                       itemIDs = 1:20)


[Package eatATA version 1.1.2 Index]