Package: cfcompare 0.2.1

Takuma Iwasaki
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.
Authors:
cfcompare_0.2.1.tar.gz
cfcompare_0.2.1.zip(r-4.7-any)cfcompare_0.2.1.zip(r-4.6-any)
cfcompare_0.2.1.tar.gz(r-4.7-any)cfcompare_0.2.1.tar.gz(r-4.6-any)
cfcompare_0.2.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
cfcompare/json (API)
| # Install 'cfcompare' in R: |
| install.packages('cfcompare', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/takuma1102/cfcompare/issues
Pkgdown/docs site:https://takuma1102.github.io
Last updated from:fcec6959c7. Checks:6 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel | OK | 171 | ||
| source / vignettes | OK | 224 | ||
| linux-release | OK | 154 | ||
| windows-devel | OK | 148 | ||
| windows-release | OK | 152 | ||
| wasm-release | OK | 131 |
Exports:as_attautoplotbind_attcompare_se_modescounterfactual_matrixpanel_comparepanel_matricespanel_rmseplot_counterfactualplot_trop_surfacespredict_counterfactualrmse_curvermse_curvesselected_lambdasim_panelsim_semisyntheticsurface_matrixtroptrop_ablationtrop_controltrop_event_studytrop_matrixtrop_placebo_testtrop_sensitivitytrue_att
Dependencies:clicpp11farverggplot2gluegtableisobandlabelinglifecycleR6RColorBrewerrlangS7scalesvctrsviridisLitewithr
