tisane.Unit.numeric

method

Unit.numeric(name, data=None, number_of_instances=1)

Creates a variable that takes on integer or real number values

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

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

  • number_of_instances (int, AbstractVariable, or tisane.AtMost, default=1) – This should be the number of measurements of an attribute per unique instance of the associated Unit. For example, if you measure the reaction time of each person in a study 10 times, then you should enter 10.

Examples

Participants in a study each had their reaction time measured 10 times.

>>> import tisane as ts
>>> participant = ts.Unit(name="participant")
>>> reaction_time = participant.numeric(name="reaction_time",
...                                     number_of_instances=10)