cfcompare: Compare DID, SDID, Matrix Completion and the Triply Robust Panel
Estimator
A comparison toolkit for binary-treatment panel causal inference.
Runs difference-in-differences (DID; two-way fixed effects), synthetic
difference-in-differences (SDID), synthetic control (SC), matrix
completion (MC), and the Triply RObust Panel (TROP) estimator of Athey,
Imbens, Qu and Viviano (2026) <doi:10.1002/jae.70061> on the same data, and
returns their average treatment effects on the treated (ATT) on a single
tidy schema with shared plots. TROP, DID and matrix completion are
implemented natively; SDID and SC are obtained through the 'synthdid'
package, and an alternative matrix-completion / interactive fixed-effects
estimator through 'gsynth'. The suggested packages 'synthdid' and
'augsynth' are not on CRAN; they can be installed from GitHub at
<https://github.com/synth-inference/synthdid> and
<https://github.com/ebenmichael/augsynth>, and every feature that needs them
is skipped with a message when they are absent. This is an unofficial,
independent implementation and is not affiliated with or endorsed by the
authors of the TROP estimator.
| Version: |
0.2.1 |
| Depends: |
R (≥ 4.1) |
| Imports: |
ggplot2, stats, utils |
| Suggests: |
RSpectra, future, future.apply, patchwork, synthdid, gsynth, augsynth, did, fixest, testthat (≥ 3.0.0), knitr, rmarkdown |
| Published: |
2026-11-07 |
| DOI: |
10.32614/CRAN.package.cfcompare (may not be active yet) |
| Author: |
Takuma Iwasaki [aut, cre, cph] |
| Maintainer: |
Takuma Iwasaki <iwasakit at stanford.edu> |
| BugReports: |
https://github.com/takuma1102/cfcompare/issues |
| License: |
MIT + file LICENSE |
| URL: |
https://github.com/takuma1102/cfcompare,
https://takuma1102.github.io/cfcompare/ |
| NeedsCompilation: |
no |
| Citation: |
cfcompare citation info |
| Materials: |
README, NEWS |
| CRAN checks: |
cfcompare results |
Documentation:
Downloads:
Linking:
Please use the canonical form
https://CRAN.R-project.org/package=cfcompare
to link to this page.