Skip to contents

Find the best CI split for one variable

Usage

best_split_for_one_variable(x, y, wt, varid, ctrl, ci_fun)

Arguments

x

A predictor vector.

y

A two-column numeric response matrix.

wt

Case weights.

varid

Integer variable id used by partykit::partysplit().

ctrl

A control list created by ci_tree_control() or compatible.

ci_fun

Concentration-index scoring function.

Value

A split candidate list containing the gain, partysplit, and left child membership, or NULL when no admissible split exists.