Learn R Programming

conTree (version 0.3-1)

prune.seq: Show all possible pruned subtrees

Description

Show all possible pruned subtrees

Usage

prune.seq(tree, eps = 0.01, plot.it = TRUE)

Value

a named list of two items:

  • thr a set of threshold values that sequentially reduce tree size

  • nodes the corresponding tree sizes (number of terminal nodes)

Arguments

tree

a tree model object output from contrast

eps

small increment defining grid of threshold values

plot.it

a logical flag indicating plot/don't plot of number of nodes versus threshold value for all pruned subtrees, default TRUE