OrdinalVariableValues#

class tangles.convenience.OrdinalVariableValues(var: SurveyVariable)#

An ordinal SurveyVariableValues class.

The values a nominal variable can take is represented as set of possible values. This set is taking specifications of features corresponding to this variable into account, making it a subset of all possible values of this variable.

Parameters#

varSurveyVariable

Corresponding survey variable.

Methods

invert_op()

Invert an operation contained in a metadata tuple

possible_values_representation()

Return a representation of the possible values the corresponding variable can take (according to specifications seen so far)

update_values_for_specification()

Update the list of possible values a variable can take