trends_test | R Documentation |
trends_test
returns a tibble that is ready for the random trends test.
trends_test(data, window, cluster_blocks)
data |
an object/dataframe/tibble. |
window |
how big the event window is (in weeks) |
cluster_blocks |
a number for how many days you want clustered together. I usually do 7 for week. |
This function creates the event study tibble needed to do analysis in event study framework.
trends_test(daily_crime, window = 8, cluster_blocks = 7)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.