test_null_theta_ctree: Test if a Value Gives a Null Conditional Inference Tree

View source: R/permute.R

test_null_theta_ctreeR Documentation

Test if a Value Gives a Null Conditional Inference Tree

Description

Fits a conditional inference tree with minimal test statistic theta and tests if the tree has more than one terminal node.

Usage

test_null_theta_ctree(theta, z, data, Trt, Y)

Arguments

theta

a positive double

z

a numeric vector of estimated CATEs from Step 1

data

a data frame containing a response, binary treatment indicators, and covariates.

Trt

a string specifying the name of the column of data contains the treatment indicators.

Y

a string specifying the name of the column of data contains the response.

Value

a boolean. True if theta is large enough to give a null conditional inference tree. False otherwise.


jackmwolf/tehtuner documentation built on June 10, 2025, 10:32 p.m.