tidysynth
0.2.1A Tidy Implementation of the Synthetic Control Method
0packages depend
13.2Kdownloads / year
64.9%test coverage
13/13checks pass
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.
Install
Health
CRAN checks
13OK
Slowest check: 1.8 min · r-oldrel-windows-x86_64
Code health
Yes
Tests · ratio 0.29
64.9%
Coverage · measured lines
94%
Documentation · exports
11
Dependencies · direct
Check history
- OK2026-03-1014 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Documentation
Documentation
READMEYes · 2,003 wordsVignettesNopkgdown siteNoNEWSYes · 67% structuredCode of conductNoContributing guideNo
- Examples that run
- 6%
- Documented parameters
- 100%
- Return-value docs
- 100%
- References docs
- 5%
Downloads
13.2K
CRAN downloads in the past year
Rank #3,763 · ~36/day · ~1.1K/mo
Daily download trend is not available in this view yet.
70630 days
2.8K90 days
13.2K1 year
Also on115 r2u30 autocran32 c2d4u
Dependencies
Declared dependencies
11 external dependencies (excludes base and recommended)
Depends (1)
R >= 3.5.0
LinkingTo (0)
none
Suggests (1)
Enhances (0)
none
Reverse dependencies
0direct
0indirect
Nothing depends on this yet.
Code & Tests
Code Composition
R 3,688 (67%)Rd 1,825 (33%)
Code characteristics
Object systems
S31
- Cyclomatic complexity
- 1.0 median / 30 max
- Test cases
- 13 / 0.29 per code line
Test coverage
Line coverage
65%
Expression
57.5%
Tests / Examples
64.9% / 0% ex
Functions
36 33 exported
Complexity
3.1 avg / 30 max
Call network
36 nodes / 15 edges
Call graph
Open call graph →Loading call graph…
Lowest coverage
36 functions| Function | Cyclo | Coverage |
|---|---|---|
| plot_differences exp | 1 | 0% |
| plot_differences exp | 3 | 0% |
| plot_mspe_ratio exp | 1 | 0% |
| plot_mspe_ratio exp | 1 | 0% |
| plot_placebos exp | 1 | 0% |
| plot_placebos exp | 4 | 0% |
Datasets
Bundled datasets · 1
| Name | Class | Rows × Cols | Also ships in |
|---|---|---|---|
| smoking | tbl_df/tbl/data.frame | 1,209 × 7 | – |
People & History
Package Timeline
3 releases. Pick two to compare their code metrics. R releases are shown for context.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- 0.2.1Latest
- unarchivedReturned to CRAN2025-03-24
- archivedRemoved from CRAN2024-12-03issues were not corrected despite reminders
- RR 4.4.0 released · 2024-04-24
- 0.2.02023-05-21 · diff ↗
- unarchivedReturned to CRAN2023-05-21
- RR 4.3.0 released · 2023-04-21
- archivedRemoved from CRAN2023-04-14requires archived package 'LowRankQP'
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- 0.1.02021-01-27
- RR 4.0.0 released · 2020-04-24
0 of 2 selectedCompare selected
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
- Installed size
- not tracked yet
- With dependencies
- not tracked yet
Appears in task views