find_leaf_split: Find the split that leads to a specific leaf node...

View source: R/grf_helpers.R

find_leaf_splitR Documentation

Find the split that leads to a specific leaf node (deprecated)

Description

Deprecated.

Returns only the single split immediately above leaf_node, rendered as "var <= value". This is not a correct subgroup definition for a leaf below depth 1: it drops the rest of the root-to-leaf path and mis-renders right-turns (which are >, not <=). Use the path-based .grf_build_subgroup_definition() instead, which grf.subg.harm.survival() now calls internally. Retained (exported) only for backward compatibility; it is no longer used inside the package and will be removed in a future release.

Usage

find_leaf_split(tree, leaf_node)

Arguments

tree

Policy tree object

leaf_node

Integer. Leaf node identifier

Value

Character string with a single split expression, or NULL.

See Also

grf.subg.harm.survival for the standard entry point.

Examples

## Not run: 
# Deprecated; grf.subg.harm.survival() builds the full path internally.

## End(Not run)

forestsearch documentation built on Nov. 15, 2026, 9:06 a.m.