synth-inference / synthdid

Synthetic difference in differences
https://synth-inference.github.io/synthdid
BSD 3-Clause "New" or "Revised" License
261 stars 96 forks source link

synthdid_plot: adding headers? #85

Open ledainga opened 2 years ago

ledainga commented 2 years ago

Is there a way to add headers (DID, SC, and SDID) using synthdid_plot? I could do it manually in my text editor, but it would be nice to be able to do it in R itself.

Thanks!

davidahirshberg commented 2 years ago

It’s just a ggplot. You can add a title, change the axes, etc by addition as usual.

library(synthdid) data('california_prop99') setup = panel.matrices(california_prop99) tau.hat = synthdid_estimate(setup$Y, setup$N0, setup$T0) plot(tau.hat) + ggtitle(’SDID’) On Mar 31, 2022, 10:25 AM -0400, ledainga @.>, wrote: Is there a way to add headers (DID, SC, and SDID) using synthdid_plot? I could do it manually in my text editor, but it would be nice to be able to do it in R itself. Thanks! — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.>