View source: R/pre_processing_data.R
SplitTreatmentEstimation | R Documentation |
SplitTreatmentEstimation
fits a control group to each location within a
Treatment group and calculates their imbalance metrics.
SplitTreatmentEstimation(
treatment_locations,
data,
treatment_start_time,
treatment_end_time,
model,
verbose = FALSE,
Y_id = "Y",
time_id = "time",
location_id = "location",
X = c(),
fixed_effects = TRUE
)
treatment_locations |
Vector of locations where the treatment was applied. |
data |
DataFrame that GeoLfit will use to determine a result.
Should be the output of |
treatment_start_time |
Time index of the start of the treatment. |
treatment_end_time |
Time index of the end of the treatment. |
model |
A string indicating the outcome model used to augment the Augmented Synthetic Control Method. Augmentation through a prognostic function can improve fit and reduce L2 imbalance metrics.
|
verbose |
boolean that determines if processing messages will be shown. |
Y_id |
Name of the outcome variable (String). |
time_id |
Name of the time variable (String). |
location_id |
Name of the location variable (String). |
X |
Vector with covariates names. |
fixed_effects |
A logic flag indicating whether to include unit fixed effects in the model. Set to TRUE by default. |
Dataframe with L2 imbalance ranking and these columns:
"treatment_location": Single Treatment location being considered.
"l2_imbalance": L2 imbalance for treatment_location estimation.
"scaled_l2_imbalance": Scaled L2 imbalance for treatment_location estimation.
"treatment_group_size": Size of treatment group for each iteration.
"model": Outcome model being used for Augmented Synthetic Control.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.