get_mnpp.classtree {tehtuner}R Documentation

Get the MNPP for a Classification Tree

Description

Finds the lowest complexity parameter for a null regression tree fit

Usage

get_mnpp.classtree(z, data, Trt, Y, threshold)

Arguments

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.

threshold

for "step2 = 'classtree'" only. The value against which to test if the estimated individual treatment effect from Step 1 is higher (TRUE) or lower (FALSE).

Value

the MNPP


[Package tehtuner version 0.3.0 Index]