View source: R/event_study_graph.R
event_study_graph | R Documentation |
event_study_graph
returns a ggplot object of the event study graph.
event_study_graph(x, window_size, reference_period = window_size)
x |
a regression fixest object. |
window_size |
the length of the event window. |
reference_period |
the period to be omitted, defaults to period before. This is found by counting from last period to period wanted. |
This function relies on dplyr, ggplot, and tibble packages to work.
event_study_graph(x, 8, 8)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.