Skip to content

triplediff

Triple-Difference Estimators

v0.2.4 · Jun 13, 2026 · MIT + file LICENSE

Description

Implements triple-difference (DDD) estimators for both average treatment effects and event-study parameters. Methods include regression adjustment, inverse-probability weighting, and doubly-robust estimators, all of which rely on a conditional DDD parallel-trends assumption and allow covariate adjustment across multiple pre- and post-treatment periods. The methodology is detailed in Ortiz-Villavicencio and Sant'Anna (2025) <doi:10.48550/arXiv.2505.09942>.

Downloads

309

Last 30 days

12738th

822

Last 90 days

2.3K

Last year

Trend: +51.5% (30d vs prior 30d)

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 21, 2026
WARNING 11 OK · 0 NOTE · 2 WARNING · 0 ERROR · 0 FAILURE Jun 12, 2026
WARNING r-devel-linux-x86_64-fedora-clang

examples

Found the following significant warnings:

  Warning in BMisc::rhs.vars(xformla) : 'BMisc::rhs.vars' is deprecated.
  Warning in BMisc::rhs.vars(xformla) : 'BMisc::rhs.vars' is deprecated.
  Warning in BMisc::rhs.vars(xformla) : 'BMisc::rhs.vars' is 
...[truncated]...
is deprecated.
  Warning in BMisc::rhs.vars(xformla) : 'BMisc::rhs.vars' is deprecated.
  Warning in BMisc::rhs.vars(xformla) : 'BMisc::rhs.vars' is deprecated.
Deprecated functions may be defunct as soon as of the next release of
R.
See ?Deprecated.
WARNING r-devel-linux-x86_64-fedora-gcc

examples

Found the following significant warnings:

  Warning in BMisc::rhs.vars(xformla) : 'BMisc::rhs.vars' is deprecated.
  Warning in BMisc::rhs.vars(xformla) : 'BMisc::rhs.vars' is deprecated.
  Warning in BMisc::rhs.vars(xformla) : 'BMisc::rhs.vars' is 
...[truncated]...
is deprecated.
  Warning in BMisc::rhs.vars(xformla) : 'BMisc::rhs.vars' is deprecated.
  Warning in BMisc::rhs.vars(xformla) : 'BMisc::rhs.vars' is deprecated.
Deprecated functions may be defunct as soon as of the next release of
R.
See ?Deprecated.
OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 9, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Jun 7, 2026
ERROR r-devel-linux-x86_64-debian-gcc

whether the package can be loaded

Loading this package had a fatal error status code 2
Loading log:
Fatal error: cannot create 'R_TempDir'
OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE May 2, 2026
ERROR 11 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Apr 25, 2026
ERROR r-release-macos-x86_64

package dependencies

Package required but not available: ‘BMisc’

See section ‘The DESCRIPTION file’ in the ‘Writing R Extensions’
manual.
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 22, 2026
ERROR 13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Apr 18, 2026
ERROR r-devel-windows-x86_64

whether package can be installed

Installation failed.
See 'd:/Rcompile/CRANpkg/local/4.6/triplediff.Rcheck/00install.out' for details.
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Dependency Network

Dependencies Reverse dependencies BMisc data.table fastglm Matrix Rcpp triplediff

Version History

4 tracked
updated 0.2.4 ← 0.2.0 diff Jun 13, 2026
new 0.2.0 Mar 10, 2026
updated 0.2.0 ← 0.1.0 diff Jan 15, 2026
new 0.1.0 Jul 22, 2025