The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]dogado.de.

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:

Reference manual: cfcompare.html , cfcompare.pdf
Vignettes: Comparing panel estimators with cfcompare (source, R code)

Downloads:

Package source: cfcompare_0.2.1.tar.gz
Windows binaries: r-devel: cfcompare_0.2.1.zip, r-release: not available, r-oldrel: not available
macOS binaries: r-release (arm64): cfcompare_0.2.1.tgz, r-oldrel (arm64): cfcompare_0.2.1.tgz, r-release (x86_64): cfcompare_0.2.1.tgz, r-oldrel (x86_64): cfcompare_0.2.1.tgz

Linking:

Please use the canonical form https://CRAN.R-project.org/package=cfcompare to link to this page.

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.