tisane.variable.Measure.causes¶
method
- Measure.causes(effect)¶
Adds a causes relationship to a data variable.
- Parameters
effect (AbstractVariable) – The effect of the data variable
See also
associates_with
create a correlation relationship
Examples
>>> import tisane as ts >>> adult = ts.Unit(name="adult") >>> pounds_lost = adult.numeric("pounds_lost") >>> group = ts.Unit(name="group") >>> exercise_regimen = group.nominal(name="exercise_regimen") >>> exercise_regimen.causes(pounds_lost) # the exercise regimen causes the number of pounds lost