View source: R/event_study_stagger.R
event_study_stagger | R Documentation |
event_study_stagger
returns a tibble ready for event study analysis in units of days with staggered adoption
event_study_stagger(data, leads_lags, clusters)
data |
an object/dataframe/tibble (daily_crime). |
leads_lags |
how big the event window is. |
clusters |
a number for how many days you want clustered together. |
This function creates the event study tibble needed to do analysis in event study framework.
event_study_stagger(daily_crime, leads_lags = 8, bin_length =7)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.