View source: R/did_panel_plot.R
did_panel_plot | R Documentation |
generate a DiD panel plot
did_panel_plot(data, unit, year, group, treat)
data |
A df of DiD panel data with unit, group, year and treatment status indicators |
unit |
character vector specifying the name of the unit variable |
year |
character vector specifying the name of the year variable |
group |
character vector specifying the name of the group variable |
treat |
character vector specifying the name of the treatment variable |
a ggplot object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.