Skip to content

didimputation

Imputation Estimator from Borusyak, Jaravel, and Spiess (2021)

v0.5.1 · Mar 8, 2026 · MIT + file LICENSE

Description

Estimates Two-way Fixed Effects difference-in-differences/event-study models using the imputation-based approach proposed by Borusyak, Jaravel, and Spiess (2021).

Downloads

1.7K

Last 30 days

3045th

3.8K

Last 90 days

16.4K

Last year

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

CRAN Check Status

14 OK
Show all 14 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-macos-arm64 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 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 11, 2026
ERROR 13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Mar 10, 2026
ERROR r-devel-linux-x86_64-fedora-gcc

tests

Running ‘testthat.R’
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(didimputation)
  Loading required package: fixest
  Loading required package: data.table
  
  Attaching package: 'data.table'
  
 
...[truncated]...
:::datasource_connection(...)
   4.       └─readr:::read_connection(path)
   5.         ├─base::open(con, "rb")
   6.         └─base::open.connection(con, "rb")
  
  [ FAIL 1 | WARN 1 | SKIP 0 | PASS 0 ]
  Error:
  ! Test failures.
  Execution halted

Reverse Dependencies (1)

imports

Dependency Network

Dependencies Reverse dependencies fixest data.table Matrix did2s didimputation

Version History

new 0.5.1 Mar 10, 2026
updated 0.5.1 ← 0.5.0 diff Mar 8, 2026
updated 0.5.0 ← 0.3.0 diff Dec 16, 2025
updated 0.3.0 ← 0.1.0 diff Aug 24, 2022
new 0.1.0 Aug 1, 2021