powered by
This function calculates statistics related to the test of heterogeneous treatment effects across groups.
het.test(T, tau, Y, ngates = 5)
A list that contains the following items:
The estimated statistic for the test of heterogeneity.
The p-value of the null hypothesis (that the treatment effects are homogeneous)
A vector of the unit-level binary treatment receipt variable for each sample.
A vector of the unit-level continuous score. Conditional Average Treatment Effect is one possible measure.
A vector of the outcome variable of interest for each sample.
The number of groups to separate the data into. The groups are determined by tau. Default is 5.
tau
Michael Lingzhi Li, Technology and Operations Management, Harvard Business School mili@hbs.edu, https://www.michaellz.com/;
The details of the methods for this design are given in Imai and Li (2022).
Imai and Li (2022). “Statistical Inference for Heterogeneous Treatment Effects Discovered by Generic Machine Learning in Randomized Experiments”,
T = c(1,0,1,0,1,0,1,0) tau = c(0,0.1,0.2,0.3,0.4,0.5,0.6,0.7) Y = c(4,5,0,2,4,1,-4,3) hettestlist <- het.test(T,tau,Y,ngates=5) hettestlist$stat hettestlist$pval
Run the code above in your browser using DataLab