Matching Methods for Causal Inference with Time-Series Cross-Sectional Data
Overview
Implements a set of methodological tools that enable researchers to apply matching methods to time-series cross-sectional data. Imai, Kim, and Wang (2023) https://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.
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK12 OK2026-04-25
- ERROR13 OK, 1 ERROR2026-03-30
- OK14 OK2026-03-10
Documentation
- Help pages
- 82 (41 internal)includes a package overview page
- Examples that run
- 96%27 run in a plain check · 1 never run
- Exported functions with examples
- 53%
- Documented parameters
- 100%
- Return-value docs
- 67%
- Help pages citing references
- 4%
Downloads
Repository
- PRs merged (all time)
- 67%
- Median days to close, 50 most recently updated closed issues
- 62
- Median days to close, 50 most recently updated closed PRs
- 6
Stars over time
Forks over time
Issues over time
PRs over time
3 development-tooling and community-health practices detected across 2 families in the upstream repository
Checks run against github.com/insongkim/panelmatch on 2026-10-18.
Dependencies
Installing PanelMatch adds 31 packages (13 with compiled code, 30 MB of source tarballs). Heaviest: ggplot2 6.0 MB, data.table 5.7 MB, glmnet 2.7 MB.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- 3.1.5Latest2026-10-01 · current release · diff ↗ ·
added 2 exports
compare_treated_observations, diagnostic_summary - RR 4.6.0 released · 2026-04-24
- 3.1.32025-12-13 · diff ↗
- 3.1.1
- RR 4.5.0 released · 2025-04-11
- 3.0.02025-03-03 · diff ↗ ·
removed 1 export
balance_scatteradded 5 exports
PanelData, distances, extract, get_unrefined_balance, weights - 2.2.02024-06-04 · diff ↗
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- 2.0.12022-06-26 · diff ↗ ·
removed 2 exports
getSetTreatmentEffects, placeboTestadded 2 exports
get_set_treatment_effects, placebo_test - RR 4.2.0 released · 2022-04-22
- 2.0.0
- RR 4.1.0 released · 2021-05-18
- RR 4.0.0 released · 2020-04-24
- 1.0.02020-02-28
- RR 3.6.0 released · 2019-04-26
Package metadata
- First published
- 2020-02-28
- Total releases
- 8 / 6 yrs
- License
- GPL (>= 3) OSI
- Minimum R
- ≥ 2.14.0
- Bundled data
- 61 KB / 1 file
- Download size
- 386 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("PanelMatch")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-22, which the citation names so these numbers can be found later. More on citing and the projects behind them.