scpi
4.0.1Synthetic Control Methods
Overview
Implementation of prediction and inference procedures for Synthetic Control methods using least square, lasso, ridge, or simplex-type constraints. Uncertainty is quantified with prediction intervals as developed in Cattaneo, Feng, and Titiunik (2021) doi:10.1080/01621459.2021.1979561 for a single treated unit and in Cattaneo, Feng, Palomba, and Titiunik (2027) doi:10.1162/rest_a_01588 for multiple treated units and staggered adoption. More details about the software implementation can be found in Cattaneo, Feng, Palomba, and Titiunik (2025) doi:10.18637/jss.v113.i01.
Install
Health
- OK2026-06-1813 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- WARNING2026-06-1010 OK · 0 NOTE · 3 WARNING · 0 ERROR · 0 FAILURE
- OK2026-06-0913 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- ERROR2026-06-0712 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
- OK2026-03-1814 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Show 1 earlier snapshots
- ERROR2026-03-1012 OK · 0 NOTE · 0 WARNING · 2 ERROR · 0 FAILURE
Documentation
- Examples that run
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- References docs
- 39%
Downloads
Repository
Repository practices
5 development-tooling and community-health practices detected across 4 families in the upstream repository
Checks run against github.com/nppackages/scpi on 2026-07-19.
Dependencies
Nothing depends on this yet.
Code & Tests
- Cyclomatic complexity
- 6.0 median / 141 max
- Test cases
- 18 / 0.11 per code line
Test coverage
Line coverage
57%
Expression
57.5%
Tests / Examples
56.6% / 45% ex
Functions
57 6 exported
Complexity
15.2 avg / 141 max
Call network
57 nodes / 66 edges
Call graph
Open call graph →Lowest coverage
57 functions| Function | Cyclo | Coverage |
|---|---|---|
| scplot exp | 56 | 0% |
| scplotMulti exp | 69 | 0% |
| b.est.multi | 12 | 0% |
| blockdiagRidge | 3 | 0% |
| ci2df | 1 | 0% |
| coef.scest | 2 | 0% |
Datasets
| Name | Class | Rows × Cols | Also ships in |
|---|---|---|---|
| scpi_germany | data.frame | 748 × 8 | – |
People & History
17 releases. Pick two to compare their code metrics. R releases are shown for context.
- 4.0.1Latest
- 4.0.02026-06-03 · diff ↗
- RR 4.6.0 released · 2026-04-24
- 3.0.22026-03-07 · diff ↗
- 3.0.12025-07-04 · diff ↗
- RR 4.5.0 released · 2025-04-11
- 3.0.02025-01-31 · diff ↗
- 2.2.62024-11-12 · diff ↗
- RR 4.4.0 released · 2024-04-24
- 2.2.52023-11-01 · diff ↗
- 2.2.42023-05-20 · diff ↗
- 2.2.32023-05-11 · diff ↗
- 2.2.22023-04-21 · diff ↗
- RR 4.3.0 released · 2023-04-21
- 2.2.12023-03-15 · diff ↗
- 2.1.02022-12-25 · diff ↗
Package metadata
- First published
- 2022-02-23
- Total releases
- 17 / 4 yrs
- License
- GPL-3 OSI
- Minimum R
- ≥ 4.1.0
- Bundled data
- 17 KB / 1 file
- Download size
- 170 KB
- Installed size
- not tracked yet
- With dependencies
- not tracked yet