Skip to contents

Returns the full cta_tree object selected at LORT node index. This is the complete CTA/MDSA family member fitted on the observations that reached that node – not a summary, not a stump approximation, not reconstructed from plot-data.

Usage

lort_local_tree(x, index)

Arguments

x

A cta_ort object from lort_fit.

index

Integer; LORT node index.

Value

A cta_tree object or NULL (with a message for forced-terminal nodes).

Details

Returns NULL when the node is terminal due to min_n, max_depth, max_nodes, or a pure-class guard (no fit was attempted). A no_tree result at a non-forced-terminal node yields a cta_tree with $no_tree = TRUE.