ATE¶
- class pqp.identification.ATE(outcome, treatment_condition, control_condition=None)¶
Bases:
AbstractCausalEstimandCausal estimand for the average treatment effect
To define the average treatment effect, it’s necessary to specify what is meant by “treatment” and “control” in this context. You can do this by passing either a
dictor a list ofStatisticalEventobjects to each of thetreatment_conditionandcontrol_conditionarguments. If adictis passed, the keys must beVariableorstr, and the values must not beVariable. If alistis passed, it must contain only instances ofStatisticalEvent.Example
>>> # treatment condition is x = 1, control condition is x = 0 in both of these >>> ATE(outcome, treatment_condition={"x": 1}, control_condition={"x": 0}) >>> ATE(outcome, treatment_condition=[EqualityEvent("x", 1)], control_condition=[EqualityEvent("x", 0)]) >>> >>> # treatment condition is x = 1 and y = "red", control condition is x = 0 and y = "blue" >>> ATE(outcome, treatment_condition={"x": 1, y: "red"}, control_condition={"x": 0, y: "blue"})
- Parameters:
outcome (
Variable) – the outcome variabletreatment_condition (
dictorlist) – the treatment conditioncontrol_condition (
dictorlist) – the control condition
Methods Summary
Derive the expression for the causal estimand
Methods Documentation
- expression()¶
Derive the expression for the causal estimand
- Returns:
the expression for the causal estimand
- Return type:
AbstractExpression