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 ascategories
orcardinality
.
- 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
associates_with
(variable)Adds a correlation relationship to a data variable.
alias of
list
causes
(effect)Adds a causes relationship to a data variable.
get_unit
()moderates
(moderator, on)Adds an interaction relationship to a data variable
add_data
get_number_of_instances
- categories¶
alias of
list