Internal function. Please refer to run_synthetic_forecast documentation.
prepare_dataset(
df,
df_elegible_units,
col_unit_name,
col_time,
unit_of_interest,
max_time_unit_of_interest
)Main DataFrame.
output from intern_elegile_units().
String with column name of the column with the units names.
String with the column name of the time column.
Value of the col_unit_name that is of interest.
Outout from intern_get_max_time_unit_of_interest().
A dataset to be inputed in the compute_synthetic_control().