Skip to content

staggR

0.2.0

Fit Difference-in-Differences Models with Staggered Interventions

0packages depend
1.9Kdownloads / year
test coverage
13/13checks pass

Overview

About
Maintained by Kyle HartFirst published 2026-01-142 releasesCRAN page ↗GitHub ↗

Fits linear difference-in-differences models in scenarios where intervention roll-outs are staggered over time. The package implements a version of an approach proposed by Sun and Abraham (2021) doi:10.1016/j.jeconom.2020.09.006 to estimate cohort- and time-since-treatment specific difference-in-differences parameters, and it provides convenience functions both for specifying the model and for flexibly aggregating coefficients to answer a variety of research questions.

Install

Health

CRAN checks
13OK
Slowest check: 3.0 min · r-devel-linux-x86_64-fedora-gcc
Code health
None
Tests · ratio 0.00
not tracked
Coverage
100%
Documentation · exports
Yes
Vignettes
Yes
README
1
Dependencies · direct
Check history
  • OK2026-06-08
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • WARNING2026-06-07
    12 OK · 0 NOTE · 1 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Downloads

1.9K
CRAN downloads in the past year
Rank #8,717 · ~5/day · ~162/mo
Daily download trend is not available in this view yet.
41830 days
1.4K90 days
1.9K1 year
Compare downloads with other packages →
Also on41 r2u21 autocran

Repository

Repository
0Stars
0Forks
3Open issues
0Open PRs
0Releases

Dependencies

Declared dependencies
4 external dependencies (excludes base and recommended)
Depends (1)
R >= 4.1
Imports (1)
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Code & Tests

Code Composition
R 1,280 (46%)Rd 677 (24%)Vignettes 529 (19%)Other 322 (11%)
Code characteristics
Object systems
S32
Cyclomatic complexity
3.5 median / 16 max
Documented parameters
100%

Test coverage

Line coverage

Expression

Tests / Examples

Functions

14 10 exported

Complexity

5.6 avg / 16 max

Call network

14 nodes / 8 edges

Test coverage has not been measured for this package yet; nodes fall back to a neutral fill.

Loading call graph…

Lowest coverage

Per-function coverage is not measured for this package yet.

People & History

People (2)
Maintainer (1)
Author, Maintainer, Copyright holder
Authors (2)
Author, Maintainer, Copyright holder
Copyright holders (1)
Author, Maintainer, Copyright holder
Release timeline

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

  • R
    R 4.6.0 released · 2026-04-24
  • 0.2.0Latest
    2026-04-02 · current release · diff ↗
  • 0.1.1
    2026-03-10
  • R
    R 4.5.0 released · 2025-04-11

Package metadata

First published
2026-01-14
Total releases
2 / 1 yrs
License
GPL-3 OSI
Minimum R
≥ 4.1
Bundled data
193 KB / 2 files
Download size
799 KB
Installed size
not tracked yet
With dependencies
not tracked yet