Skip to content

hettx

Fisherian and Neymanian Methods for Detecting and Measuring Treatment Effect Variation

v1.0.1 · Feb 24, 2026 · GPL (>= 3)

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

CRAN

307

Last 30 days

12816th

869

Last 90 days

3.2K

Last year

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

r2u CRAN

9

Last 30 days

29

Last 90 days

112

Last year

Trend: -50% (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 May 8, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE May 7, 2026
ERROR r-devel-linux-x86_64-debian-gcc

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
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Dependency Network

Dependencies Reverse dependencies generics quantreg mvtnorm MASS foreach doParallel moments ggplot2 hettx

Version History

5 tracked
new 1.0.1 Mar 10, 2026
updated 1.0.1 ← 0.1.3 diff Feb 23, 2026
updated 0.1.3 ← 0.1.2 diff Aug 19, 2023
updated 0.1.2 ← 0.1.1 diff Feb 15, 2023
new 0.1.1 Mar 5, 2019