prune.addtree: Prune AddTree tree

View source: R/prune.addtree.R

prune.addtreeR Documentation

Prune AddTree tree

Description

Prune an AddTree tree in Node format using data.tree to remove sister nodes with same class estimate.

Usage

prune.addtree(
  addtree,
  prune.empty.leaves = TRUE,
  remove.bad.parents = TRUE,
  verbose = TRUE
)

Arguments

addtree

rtMod trained with s_AddTree

prune.empty.leaves

Logical: If TRUE, remove leaves with 0 cases.

remove.bad.parents

Logical: If TRUE, remove nodes with no siblings but children and give their children to their parent.

verbose

Logical: If TRUE, print messages to console.

Author(s)

E.D. Gennatas


egenn/rtemis documentation built on May 4, 2024, 7:40 p.m.