InversePropensityWeighting.input_validation#
- InversePropensityWeighting.input_validation()[source]#
Validate the input data and model formula for correctness.
Checks that the
outcome_variableexists inself.dataand that the treatment values produced by the formula are binary. Note that a constant (single-value) treatment passes this check without error but may cause downstream estimators to fail or produce undefined results.- Raises:
DataException – If the outcome variable is missing from the data or if the formula produces treatment values other than zero and one.
- Return type:
None