addScoreToConstraintData: (Internal) Sum scores of items in a solution that match a...

View source: R/constraint_functions.R

addScoreToConstraintDataR Documentation

(Internal) Sum scores of items in a solution that match a constraint

Description

addScoreToConstraintData is an internal function for summing the score of items in a solution that match a constraint.

Usage

addScoreToConstraintData(x, attrib, item_idx, item_resp, item_ncat)

Arguments

x

a data.frame containing a single constraint data.

attrib

an item_attrib object.

item_idx

item indices in the solution.

item_resp

scores of items in the solution.

item_ncat

number of score categories of items in the solution.

Value

addScoreToConstraintData returns an updated data.frame.


choi-phd/TestDesign documentation built on Oct. 1, 2024, 2:37 a.m.