Description Usage Arguments Value
Perform a one-sided hypothesis test of whether the estimate conditional
average treatment effect (CATE) exceeds a given threshold. In particular,
this is a test of the null hypothesis H0: CATE <= threshold against the
alternative hypothesis H1: CATE > threshold. This function returns the
relevant metrics (e.g., standard error, test statistic) for evaluating this
hypothesis test, augmenting the input data.table
.
1 2 | test_segments(data_with_cate, threshold, segment_by, type = c("rule",
"summary"))
|
data_with_cate |
A |
threshold |
A |
segment_by |
A |
type |
A |
A data.table
, of one of two types:
Either the full input data, augmented with the segment-specific CATE, the estimated standard error of the estimated CATE, a test statistic for evaluating the statistical difference of the CATE from a threshold, and the segment-specific p-value for this test of a difference. Note that this table is of the same length as the input data, that is, there is a row for each observation and observation-level nuisance estimates.
A summary table containing identifying information for the segments as well as all of the same information noted above for the estimated CATE and the associated hypothesis test. Note that the length of this table matches the number of discovered segments, that is, it is a summary of the segment-specific information; consequently, all observation-level information is discarded from this summary table.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.