View source: R/synthetic_control.R
| sc_placebo_test | R Documentation |
Performs a placebo (permutation) test by re-estimating the synthetic control for each donor unit as a pseudo-treated unit. The p-value is the rank of the treated unit's RMSPE ratio among all units.
sc_placebo_test(task, n_placebo = NULL)
task |
A |
n_placebo |
Number of placebo units to use. Default NULL (all donors). |
The task with results$placebo populated, a list containing
rmspe_ratios, p_value, and placebo_gaps.
Other eventstudy-tasks:
IntradayEventStudyTask,
PanelEventStudyTask,
SyntheticControlTask,
estimate_panel_event_study(),
estimate_synthetic_control(),
nonparametric_intraday_test(),
plot_panel_event_study(),
plot_synthetic_control(),
prepare_intraday_event_study()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.