Internal function. Please refer to run_synthetic_forecast documentation.

compute_synthetic_control(
  prepared_dataset,
  unit_of_interest,
  serie_of_interest,
  col_time,
  max_time_unit_of_interest
)

Arguments

prepared_dataset

Output from prepare_dataset().

unit_of_interest

Value of the col_unit_name that is of interest.

serie_of_interest

Column name os the serie to be projected.

col_time

String with the column name of the time column.

max_time_unit_of_interest

Outout from intern_get_max_time_unit_of_interest().

Value

List with (i) Synth::dataprep() output and (ii) Synth::Synth() output.

Details

Compute the synthetic control 9wraps Synth package).