Canonical CTA node report table
cta_node_table.RdReturns a data frame with one row per node, mirroring the CTA.exe-style node report (ATTRIBUTE, NODE, LEV, OBS, p, ESS/WESS, LOO, WESSL/LOO ESS, LOOp, TYP, MODEL columns).
Split nodes carry canonical split metrics (ESS, WESS, p, LOO status, LOO
ESS/WESSL, LOOp) and a MODEL field with branch strings and terminal-leaf
* markers. Leaf rows have NA for all split metrics and MODEL.
Arguments
- tree
A
cta_treefromoda_cta_fit.
Value
Data frame with columns:
node_idInteger node identifier.
parent_idInteger parent node identifier (0 for root).
levelInteger level from root (root = 1); alias for
depth.depthInteger depth from root (root = 1).
leafLogical;
TRUEfor terminal leaf nodes.attributeCharacter attribute name (
NAfor leaves).attr_typeCharacter attribute type (
NAfor leaves).n_obsInteger observation count at this node.
n_weightedNumeric weighted observation count.
p_mcNumeric Monte Carlo p-value (
NAfor leaves).essNumeric ESS at this split (
NAfor leaves).ess_weightedNumeric WESS at this split (
NAfor leaves); equalsesswhen case weights are not active.loo_statusCharacter LOO status, e.g.
"STABLE"(NAfor leaves).loo_essNumeric LOO ESS/WESSL (
NAfor leaves).loo_pNumeric LOO p-value (
NAfor leaves).modelCharacter CTA.exe-style branch string with terminal-leaf
*markers, e.g."<=0.5-->0,101/131,77.10%*; >0.5-->1,21/55,38.18%*".NAfor leaf nodes.