| ggdid | R Documentation |
did objects using ggplot2Function to plot objects from the did package
ggdid(object, ...)
object |
either a |
... |
other arguments |
## Not run:
data(mpdta)
out <- att_gt(yname = "lemp",
gname = "first.treat",
idname = "countyreal",
tname = "year",
xformla = ~1,
data = mpdta)
# plot all group-time average treatment effects
ggdid(out)
# plot event study aggregation
es <- aggte(out, type = "dynamic")
ggdid(es)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.