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.1K

Last 30 days

3508th

2.1K

Last 90 days

2.1K

Last year

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

CRAN Check Status

1 ERROR
13 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 ERROR
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 details (14 non-OK)
OK r-devel-linux-x86_64-debian-clang

*


            
OK r-devel-linux-x86_64-debian-gcc

*


            
OK r-devel-linux-x86_64-fedora-clang

*


            
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'
  
  The following object is masked from 'package:base':
  
      %notin%
  
  > 
  > test_check("didimputation")
  Saving _problems/test-did_imputation-10.R
  [ FAIL 1 | WARN 1 | SKIP 0 | PASS 0 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-did_imputation.R:8:1'): (code run outside of `test_that()`) ────
  Error in `open.connection(con, "rb")`: cannot open the connection
  Backtrace:
      ▆
   1. └─haven::read_dta("https://github.com/scunning1975/mixtape/raw/master/castle.dta") at test-did_imputation.R:8:1
   2.   └─readr::datasource(file)
   3.     └─readr:::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
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

*


            

Check History

ERROR 13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Mar 9, 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'
  
  The following object is masked from 'package:base':
  
      %notin%
  
  > 
  > test_check("didimputation")
  Saving _problems/test-did_imputation-10.R
  [ FAIL 1 | WARN 1 | SKIP 0 | PASS 0 ]
  
  ══ Failed tests ═════════════════════════════════

Reverse Dependencies (1)

imports

Dependency Network

Dependencies Reverse dependencies fixest data.table Matrix did2s didimputation

Version History

new 0.5.1 Mar 9, 2026