hettx
Fisherian and Neymanian Methods for Detecting and Measuring Treatment Effect Variation
Description
Implements methods developed by Ding, Feller, and Miratrix (2016) <doi:10.1111/rssb.12124> <doi:10.48550/arXiv.1412.5000>, and Ding, Feller, and Miratrix (2018) <doi:10.1080/01621459.2017.1407322> <doi:10.48550/arXiv.1605.06566> for testing whether there is unexplained variation in treatment effects across observations, and for characterizing the extent of the explained and unexplained variation in treatment effects. The package includes wrapper functions implementing the proposed methods, as well as helper functions for analyzing and visualizing the results of the test.
Downloads
307
Last 30 days
12816th
869
Last 90 days
3.2K
Last year
Trend: +29% (30d vs prior 30d)
9
Last 30 days
29
Last 90 days
112
Last year
Trend: -50% (30d vs prior 30d)
CRAN Check Status
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 May 8, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE May 7, 2026
tests
Running ‘testthat.R’ [23s/28s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(hettx)
>
> test_check("hettx")
Saving _problems/test_estimate_systematic-100.R
[ FAIL 1 | WARN 0 | SKIP 1 | PAS
...[truncated]...
ettx::estimate_systematic(...) at test_estimate_systematic.R:99:5
2. └─hettx:::est_beta_LATE(...)
3. └─base::stopifnot(min(n11, n10, n01, n00) > 1)
[ FAIL 1 | WARN 0 | SKIP 1 | PASS 63 ]
Error:
! Test failures.
Execution halted