Skip to content

Commit

Permalink
update synthdid
Browse files Browse the repository at this point in the history
  • Loading branch information
mikenguyen13 committed Jan 10, 2024
1 parent 79788a0 commit a396266
Show file tree
Hide file tree
Showing 22 changed files with 395 additions and 99 deletions.
20 changes: 15 additions & 5 deletions R/synthdid_est_ate.R
Original file line number Diff line number Diff line change
@@ -1,9 +1,19 @@
#' Estimate the full Synthdid ATEs and Standard Errors
#' Estimate the SynthDiD ATEs and Standard Errors
#'
#' This function estimates the Average Treatment Effects (ATEs) and their
#' standard errors using the Synthetic Difference-in-Differences (SynthDiD)
#' approach. It handles different cohorts, lags and leads, placebo, and pooled
#' analysis options.
#' This function uses an adapted SynthDiD method (Arkhangelsky et al., 2021) to
#' estimate the average treatment effect for staggered adoption scenarios. It combines
#' cohort-level ATT estimates, similar to the approach in Ben-Michael et al. (2022),
#' for synthetic controls with staggered adoption. The function is designed to handle
#' various cohorts, lags, leads, placebo tests, and pooled analyses.
#'
#' @references
#' Arkhangelsky, D., Athey, S., Hirshberg, D. A., Imbens, G. W., & Wager, S. (2021).
#' Synthetic difference-in-differences. American Economic Review, 111(12), 4088-4118.
#' American Economic Association 2014 Broadway, Suite 305, Nashville, TN 37203.
#'
#' Ben-Michael, E., Feller, A., & Rothstein, J. (2022). Synthetic controls with staggered
#' adoption. Journal of the Royal Statistical Society Series B: Statistical Methodology,
#' 84(2), 351-381. Oxford University Press.
#'
#' @param data A data frame in long format to be analyzed.
#' @param adoption_cohorts Vector of cohorts to use for adoption times.
Expand Down
Binary file modified causalverse_0.0.0.9000.pdf
Binary file not shown.
48 changes: 24 additions & 24 deletions docs/articles/did.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified docs/articles/did_files/figure-html/unnamed-chunk-5-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/articles/introduction.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit a396266

Please sign in to comment.