Skip to content

tidysynth

0.2.1Package record

A Tidy Implementation of the Synthetic Control Method

0packages depend
12.4Kdownloads / year
64.9%test coverage
13/13flavors OK

Overview

About

A synthetic control offers a way of evaluating the effect of an intervention in comparative case studies. The package makes a number of improvements when implementing the method in R. These improvements allow users to inspect, visualize, and tune the synthetic control more easily. A key benefit of a tidy implementation is that the entire preparation process for building the synthetic control can be accomplished in a single pipe.

Changes in 0.2.1
  • Added a NEWS.md file to track changes to the package.
  • Resolved spelling errors.
  • Fixed bug in generate_predictors() for edge-cases where no aggregate function is supplied with a NULL time_window.
  • Adjusted ordering bug that can result in inconsistencies in the optimized weights when changing the time_window.
  • Updated unit-tests to correspond with ordering bug fix on the weights.
  • Add check the ensures post-treatment periods are included when running grab_significance().
  • Fixed issue where differences in temporal ordering in the data resulted in downstream distortions of the package output. Packaged now ensures the sequential time ordering when storing the original input data.
  • Fixed synthetic_control() when the treated unit doesn't come first in the data.
  • Drop dependency on LowRankQP, which is no longer maintained. The existing default optimization method ("ipop") is now the sole optimization method used in the package.
  • Fixed small issue with documentation that prevented package from remaining on CRAN.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 1.7 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-08-04
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 0.2.1
READMEYes · 2,003 wordsVignettesNoNEWSYes · 67% structured · mentions 0.2.1Citation fileNoWebsitenot declared in DESCRIPTION
Help pages
21 (1 internal)
Examples that run
0%17 only when donttest examples are enabled (R CMD check --as-cran)
Exported functions with examples
94%
Documented parameters
100%
Return-value docs
100%
Help pages citing references
5%

Downloads

12.4K
CRAN downloads in the past year
Rank #3,689 · ~34/day · ~1K/mo
Daily download trend is not available in this view yet.
1K30 days
2.7K90 days
12.4K1 year
Compare downloads with other packages →
Also on119 r2u6 autocran65 c2d4u

Dependencies

Declared dependencies
11 external dependencies (excludes base and recommended)

Installing tidysynth adds 36 packages (18 with compiled code, 35 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, optimx 2.2 MB.

Depends (1)
R >= 3.5.0
LinkingTo (0)
none
Suggests (1)
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Datasets

People & History

People (1)
Author, Maintainer since 0.1.0 (2021)
Releases (3)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • unarchivedReturned to CRAN
    2025-03-24
  • 0.2.1Latest
    record
    2025-03-24 · current release · diff ↗
  • archivedRemoved from CRAN
    2024-12-03
    issues were not corrected despite reminders
  • R
    R 4.4.0 released · 2024-04-24
  • unarchivedReturned to CRAN
    2023-05-21
  • 0.2.0
    record
    2023-05-21 · diff ↗ ·
    removed 1 export
    grab_signficance
    added 1 export
    grab_significance
  • R
    R 4.3.0 released · 2023-04-21
  • archivedRemoved from CRAN
    2023-04-14
    requires archived package 'LowRankQP'
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • 0.1.0
    record
    2021-01-27
  • R
    R 4.0.0 released · 2020-04-24

Package metadata

First published
2021-01-27
Total releases
3 / 5 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 3.5.0
Bundled data
17 KB / 1 file
Download size
122 KB
Appears in task views

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("tidysynth")
Dunford, E. (2025). tidysynth: A Tidy Implementation of the Synthetic Control Method (Version 0.2.1) [Computer software]. https://doi.org/10.32614/CRAN.package.tidysynth

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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for tidysynth version 0.2.1 [Data set]. HJJB, LLC. Data release v2026-10-26. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-26, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy