tisane.variable.Ordinal

class tisane.variable.Ordinal(name, order, cardinality=None, data=None)

Bases: tisane.variable.Measure

Represents ordinal measures

Represents a categorical variable whose categories are ordered. You never instantiate this class directly, and instead you should create instances via the tisane.Unit.ordinal() method.

Parameters
  • name (str) – The name of the ordinal variable. If you have data, this should be the column name in the data.

  • order (list) – The ordering of the categories of the variable

  • cardinality (int, optional) – The number of unique values for the variable. This should equal the length of order.

  • data (DataVector, optional) – For internal use only.

ordered_cat

Description of attribute ordered_cat.

Type

type

properties

Description of attribute properties.

Type

type

data

The data associated with this variable

Type

DataVector

cardinality

The number of values the ordered categorical variable can take on

Type

int

See also

tisane.Unit.ordinal

create an ordinal measure attribute of a given tisane.Unit

Methods

associates_with(variable)

Adds a correlation relationship to a data variable.

calculate_cardinality_from_data(data)

causes(effect)

Adds a causes relationship to a data variable.

get_cardinality()

get_categories()

get_unit()

get_unit_relationship()

moderates(moderator, on)

Adds an interaction relationship to a data variable

add_data

get_number_of_instances