Learn R Programming

psica (version 1.0.2)

prune.psicaTree: Prunes a PSICA tree.

Description

Prunes a PSICA tree.

Usage

# S3 method for psicaTree
prune(pT, cp = 0.001, ...)

Arguments

pT

the PSICA tree to be pruned.

cp

Cost complexity parameter that defines how much the tree must be pruned. See rpart::control() for description of the cost-complexity parameter.

...

further parameters to be passed to 'rpart' object.