Package: PanelMatch 1.0.1

PanelMatch: Matching Methods for Causal Inference with Time-Series Cross-Sectional Data

Implements a set of methodological tools that enable researchers to apply matching methods to time-series cross-sectional data. Imai, Kim, and Wang (2018) <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 is done, both short-term and long-term average treatment effects for the treated can be estimated with standard errors. The package also offers a visualization technique that allows researchers to assess the quality of matches by examining the resulting covariate balance.

Authors:In Song Kim [aut, cre], Adam Rauh [aut], Erik Wang [aut], Kosuke Imai [aut]

PanelMatch_1.0.1.tar.gz
PanelMatch_1.0.1.zip(r-4.7)PanelMatch_1.0.1.zip(r-4.6)PanelMatch_1.0.1.zip(r-4.5)
PanelMatch_1.0.1.tgz(r-4.6-x86_64)PanelMatch_1.0.1.tgz(r-4.6-arm64)PanelMatch_1.0.1.tgz(r-4.5-x86_64)PanelMatch_1.0.1.tgz(r-4.5-arm64)
PanelMatch_1.0.1.tar.gz(r-4.7-arm64)PanelMatch_1.0.1.tar.gz(r-4.7-x86_64)PanelMatch_1.0.1.tar.gz(r-4.6-arm64)PanelMatch_1.0.1.tar.gz(r-4.6-x86_64)
PanelMatch_1.0.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
PanelMatch/json (API)

# Install 'PanelMatch' in R:
install.packages('PanelMatch', repos = c('https://insongkim.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/insongkim/panelmatch/issues

Uses libs:
  • c++– GNU Standard C++ Library v3
Datasets:
  • dem - County-level Democracy indicator

On CRAN:

Conda:

cpp

6.31 score 136 stars 150 scripts 499 downloads 1 mentions 6 exports 37 dependencies

Last updated from:20b1fb54f1. Checks:9 ERROR, 3 FAIL, 1 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64ERROR225
linux-devel-x86_64ERROR233
source / vignettesERROR225
linux-release-arm64ERROR233
linux-release-x86_64ERROR232
macos-release-arm64ERROR194
macos-release-x86_64ERROR394
macos-oldrel-arm64FAIL109
macos-oldrel-x86_64FAIL204
windows-develERROR223
windows-releaseERROR248
windows-oldrelFAIL60
wasm-releaseOK123

Exports:balance_scatterDisplayTreatmentget_covariate_balancematched_setPanelEstimatePanelMatch

Dependencies:backportsCBPSchkclicodetoolscpp11data.tablefarverforeachggplot2glmnetgluegtableisobanditeratorslabelinglatticelifecycleMASSMatchItMatrixnnetnumDerivR6RColorBrewerRcppRcppArmadilloRcppEigenRcppProgressrlangS7scalesshapesurvivalvctrsviridisLitewithr