Learn R Programming

rtemis (version 0.79)

prune.addtree: Prune ADDTREE tree

Description

Prune an ADDTREE tree in Node format using data.tree

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. Default = TRUE

remove.bad.parents

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