test_zero_cate: Test for Zero Conditional Average Treatment Effect

View source: R/test_hte_crump.R

test_zero_cateR Documentation

Test for Zero Conditional Average Treatment Effect

Description

H0: tau(x) = 0 for all x.

Usage

test_zero_cate(
  Y,
  W,
  X,
  poly_order = 1L,
  covariate_select = c("all", "top_down", "bottom_up"),
  t_threshold = 2,
  regression = c("ols", "logistic", "poisson"),
  offset = NULL
)

Arguments

Y

Numeric outcome vector.

W

Treatment indicator (0/1).

X

Numeric covariate matrix (no factors; use as.numeric(factor) - 1 to convert).

poly_order

Integer. Default: 1.

covariate_select

"all", "top_down", or "bottom_up".

t_threshold

Numeric. Default: 2.0.

regression

"ols", "logistic", or "poisson".

offset

Numeric offset vector (Poisson only).

Value

List with test results including covariates_selected.


forestsearch documentation built on Nov. 15, 2026, 9:06 a.m.