tisane.variable.Nominal

class tisane.variable.Nominal(name, data=None, **kwargs)

Bases: tisane.variable.Measure

Class for nominal (a.k.a. categorical) measures

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

Parameters
  • name (str) – The name of the categorical variable. If you have data, this should correspond to the column’s name in the data.

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

  • **kwargs (optional) – Additional keyword arguments from the tisane.Unit.nominal() method, such as categories or cardinality.

categories

Description of attribute categories.

Type

type

assert_property

Description of attribute assert_property.

Type

type

cardinality

Description of attribute cardinality.

Type

type

self with

Description of attribute self with.

Type

type

self and

Description of attribute self and.

Type

type

data
Type

tisane.data.DataVector

See also

tisane.Unit.nominal

create a categorical variable associated with a tisane.Unit

Methods

assign_cardinality_from_data(data)

assign_categories_from_data(data)

associates_with(variable)

Adds a correlation relationship to a data variable.

calculate_cardinality_from_data(data)

calculate_categories_from_data(data)

categories

alias of list

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

categories

alias of list