did_plot | R Documentation |
generate a DiD plot
did_plot(data, year, y, group)
data |
A df of DiD panel data with year, outcome and group indicators |
year |
character vector specifying the name of the year variable |
y |
character vector specifying the name of the outcome variable |
group |
character vector specifying the name of the group variable |
a ggplot object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.