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.5)PanelMatch_1.0.1.zip(r-4.4)PanelMatch_1.0.1.zip(r-4.3)
PanelMatch_1.0.1.tgz(r-4.4-x86_64)PanelMatch_1.0.1.tgz(r-4.4-arm64)PanelMatch_1.0.1.tgz(r-4.3-x86_64)PanelMatch_1.0.1.tgz(r-4.3-arm64)
PanelMatch_1.0.1.tar.gz(r-4.5-noble)PanelMatch_1.0.1.tar.gz(r-4.4-noble)
PanelMatch_1.0.1.tgz(r-4.4-emscripten)PanelMatch_1.0.1.tgz(r-4.3-emscripten)
PanelMatch.pdf |PanelMatch.html
PanelMatch/json (API)

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

Peer review:

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

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

On CRAN:

6 exports 113 stars 4.40 score 45 dependencies 1 mentions 101 scripts 497 downloads

Last updated 4 months agofrom:b8a7e90426. Checks:OK: 1 NOTE: 4 WARNING: 4. Indexed: yes.

TargetResultDate
Doc / VignettesOKSep 09 2024
R-4.5-win-x86_64NOTESep 09 2024
R-4.5-linux-x86_64NOTESep 09 2024
R-4.4-win-x86_64NOTESep 09 2024
R-4.4-mac-x86_64WARNINGSep 09 2024
R-4.4-mac-aarch64WARNINGSep 09 2024
R-4.3-win-x86_64NOTESep 09 2024
R-4.3-mac-x86_64WARNINGSep 09 2024
R-4.3-mac-aarch64WARNINGSep 09 2024

Exports:balance_scatterDisplayTreatmentget_covariate_balancematched_setPanelEstimatePanelMatch

Dependencies:backportsCBPSchkclicodetoolscolorspacedata.tablefansifarverforeachggplot2glmnetgluegtableisobanditeratorslabelinglatticelifecyclemagrittrMASSMatchItMatrixmgcvmunsellnlmennetnumDerivpillarpkgconfigR6RColorBrewerRcppRcppArmadilloRcppEigenRcppProgressrlangscalesshapesurvivaltibbleutf8vctrsviridisLitewithr

Matched Set Objects

Rendered frommatched_set_objects.Rmdusingknitr::rmarkdownon Sep 09 2024.

Last update: 2021-01-12
Started: 2021-01-12

Using PanelMatch

Rendered fromusing_panelmatch.Rmdusingknitr::rmarkdownon Sep 09 2024.

Last update: 2020-08-09
Started: 2020-01-21