prune.seq: Show all possible pruned subtrees

View source: R/contrast.R

prune.seqR Documentation

Show all possible pruned subtrees

Description

Show all possible pruned subtrees

Usage

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

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

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)


conTree documentation built on Nov. 22, 2023, 5:08 p.m.