SyntheticDifferenceInDifferences.input_validation#

SyntheticDifferenceInDifferences.input_validation(data, treatment_time)[source]#

Validate the input data for correctness.

Parameters:
  • data (DataFrame) – A dataframe in wide format (columns = units, rows = time periods).

  • treatment_time (int | float | Timestamp) – The time when treatment occurred, should be in reference to the data index.

Return type:

None