PanelMatch
Matching Methods for Causal Inference with Time-Series Cross-Sectional Data
Description
Implements a set of methodological tools that enable researchers to apply matching methods to time-series cross-sectional data. Imai, Kim, and Wang (2023) <http://web.mit.edu/insong/www/pdf/tscs.pdf> proposes a nonparametric generalization of the difference-in-differences estimator, which does not rely on the linearity assumption as often done in practice. Researchers first select a method of matching each treated observation for a given unit in a particular time period with control observations from other units in the same time period that have a similar treatment and covariate history. These methods include standard matching methods based on propensity score and Mahalanobis distance, as well as weighting methods. Once matching and refinement is done, treatment effects can be estimated with standard errors. The package also offers diagnostics for researchers to assess the quality of their results.
Downloads
591
Last 30 days
6774th
2.3K
Last 90 days
9.8K
Last year
Trend: -15.2% (30d vs prior 30d)
CRAN Check Status
Show all 14 flavors
| Flavor | Status |
|---|---|
| r-devel-linux-x86_64-debian-clang | OK |
| r-devel-linux-x86_64-debian-gcc | OK |
| r-devel-linux-x86_64-fedora-clang | OK |
| r-devel-linux-x86_64-fedora-gcc | OK |
| r-devel-macos-arm64 | OK |
| r-devel-windows-x86_64 | OK |
| r-oldrel-macos-arm64 | OK |
| r-oldrel-macos-x86_64 | OK |
| r-oldrel-windows-x86_64 | ERROR |
| r-patched-linux-x86_64 | OK |
| r-release-linux-x86_64 | OK |
| r-release-macos-arm64 | OK |
| r-release-macos-x86_64 | OK |
| r-release-windows-x86_64 | OK |
Check details (1 non-OK)
re-building of vignette outputs
Error(s) in re-building vignettes: --- re-building 'panelmatch-overview.Rmd' using rmarkdown ! Package pdftex.def Error: File `ded2b699f23c61eb9aa45a0439edc78b22a403a3.pdf' not found: using draft setting. Error: processing vignette 'panelmatch-overview.Rmd' failed with diagnostics: LaTeX failed to compile D:/RCompile/CRANpkg/local/4.4/PanelMatch.Rcheck/vign_test/PanelMatch/vignettes/panelmatch-overview.tex. See https://yihui.org/tinytex/r/#debugging for debugging tips. See panelmatch-overview.log for more info. --- failed re-building 'panelmatch-overview.Rmd' SUMMARY: processing the following file failed: 'panelmatch-overview.Rmd' Error: Vignette re-building failed. Execution halted
Check History
ERROR 13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Mar 30, 2026
re-building of vignette outputs
Error(s) in re-building vignettes: --- re-building 'panelmatch-overview.Rmd' using rmarkdown ! Package pdftex.def Error: File `ded2b699f23c61eb9aa45a0439edc78b22a403a3.pdf' not found: using draft setting. Error: processing vignette 'panelmatch-over ...[truncated]... ebugging for debugging tips. See panelmatch-overview.log for more info. --- failed re-building 'panelmatch-overview.Rmd' SUMMARY: processing the following file failed: 'panelmatch-overview.Rmd' Error: Vignette re-building failed. Execution halted