Skip to content

scpi

4.0.1

Synthetic Control Methods

0packages depend
47.1Kdownloads / year
56.6%test coverage
13/13checks pass

Overview

About
Maintained by Matias D. CattaneoFirst published 2022-02-2317 releasesCRAN page ↗GitHub ↗

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

CRAN checks
13OK
Slowest check: 4.9 min · r-devel-linux-x86_64-fedora-clang
Code health
Yes
Tests · ratio 0.11
56.6%
Coverage · measured lines
100%
Documentation · exports
23
Dependencies · direct
Check history
  • OK2026-06-18
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • WARNING2026-06-10
    10 OK · 0 NOTE · 3 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-06-09
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-06-07
    12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-03-18
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Show 1 earlier snapshots
  • ERROR2026-03-10
    12 OK · 0 NOTE · 0 WARNING · 2 ERROR · 0 FAILURE

Documentation

Documentation
READMENoVignettesNopkgdown siteNoNEWSNoCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
100%
Return-value docs
100%
References docs
39%

Downloads

47.1K
CRAN downloads in the past year
Rank #2,317 · ~129/day · ~3.9K/mo
Daily download trend is not available in this view yet.
51430 days
9.9K90 days
47.1K1 year
Compare downloads with other packages →
Also on121 r2u13 autocran25 c2d4u

Repository

Repository
44Stars
12Forks
0Open issues
1Open PRs
0Releases
124Commits
3Contributors
pythonrprediction-intervalsstatasynthetic-control
124 commits · Last activity 2026-07-11

Repository practices

Upstream repositoryBeta

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.

Continuous integration (1)
GitHub Actions
Automation and maintenance (1)
Dependabot
Governance and community (2)
Issue templatesSecurity policy
Git structural (1)
.gitattributes
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
20 external dependencies (excludes base and recommended)
Depends (1)
R >= 4.1.0
LinkingTo (0)
none
Suggests (1)
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Code & Tests

Code Composition
R 7,785 (83%)Rd 1,546 (17%)
Code characteristics
Object systems
S310
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

Loading call graph…

Lowest coverage

57 functions
FunctionCycloCoverage
scplot exp560%
scplotMulti exp690%
b.est.multi120%
blockdiagRidge30%
ci2df10%
coef.scest20%

Datasets

Bundled datasets · 1
NameClassRows × ColsAlso ships in
scpi_germanydata.frame748 × 8

People & History

People (4)
Maintainer (1)
Author, Maintainer
Authors (4)
Author, Maintainer
Listed in earlier versions (2)
no longer listed · 0.1 to 3.0.2
no longer listed · 4.0.0 to 4.0.1
Package Timeline

17 releases. Pick two to compare their code metrics. R releases are shown for context.

  • 4.0.1Latest
    2026-06-10 · current release · diff ↗
  • 4.0.0
    2026-06-03 · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • 3.0.2
    2026-03-07 · diff ↗
  • 3.0.1
    2025-07-04 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • 3.0.0
    2025-01-31 · diff ↗
  • 2.2.6
    2024-11-12 · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • 2.2.5
    2023-11-01 · diff ↗
  • 2.2.4
    2023-05-20 · diff ↗
  • 2.2.3
    2023-05-11 · diff ↗
  • 2.2.2
    2023-04-21 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 2.2.1
    2023-03-15 · diff ↗
  • 2.1.0
    2022-12-25 · diff ↗
Show 7 earlier events
  • 2.0.1
    2022-11-21 · diff ↗
  • 2.0.0
    2022-10-10 · diff ↗
  • 1.0.0
    2022-09-08 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • 0.2.1
    2022-03-24 · diff ↗
  • 0.1
    2022-02-23
  • R
    R 4.1.0 released · 2021-05-18

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
Appears in task views
Report a problem with this page →