oneSERule: One Standard Error Rule

Description Usage Arguments Value

Description

Extract the Cp value needed to implement the 1-standard-error rule in tree prunng for tree objexts

Usage

1
2
3
4
oneSERule(tree, f, ...)

## S3 method for class 'rpart'
oneSERule(tree, f = 1, ...)

Arguments

tree

A tree object fitted with rpart

f

The number of standard errors (if not the default 1)

...

Presently ignored

Value

A value suitable for specifying as the cp argument of prune


BillVenables/WWRCourse documentation built on Jan. 31, 2021, 4:22 p.m.