get_tau_vector: Generate a grid of treatment effect values to test

View source: R/helper_frt.R

get_tau_vectorR Documentation

Generate a grid of treatment effect values to test

Description

Creates a sequence of tau values spanning a confidence interval around the estimated treatment effect, with oversampling near the point estimate.

Usage

get_tau_vector(
  Y,
  Z,
  X = NULL,
  gamma = 0.001,
  grid.size = 21,
  grid.gamma = 100 * gamma
)

Arguments

Y

Outcome vector.

Z

Treatment assignment vector (0/1).

X

Optional covariate matrix for regression-adjusted estimation.

gamma

Width of the confidence interval. Default is 0.001.

grid.size

Number of grid points. Default is 21.

grid.gamma

Controls oversampling density near the estimate. Default is 100*gamma.

Value

A numeric vector of tau values with attributes te.hat, te.se, and te.MOE.


hettx documentation built on Feb. 24, 2026, 5:08 p.m.