sid_prune_singletons: Prune singletons from tree.

Description Usage Arguments Value

Description

Prune singletons from tree.

Usage

1
2
3
sid_prune_singletons(tree_res, data_train, data_test, classifier = svm,
  R = 100, Rmin = 250, Rmax = 500, z = 2.57, alpha = 0.05,
  parallel = TRUE)

Arguments

tree_res

A tree results structure.

data_train

Training data.

data_test

Testing data.

classifier

A classifier function, default is svm (from the e1071 package).

R

Number of replications. Default is 100.

Rmin

Ninimum number of replications for calculating p-values. Default is 250.

Rmax

Maximum number of replications for calculating p-values. Default is 500.

z

Parameter for confidence band. Use 1.96 for 95 percent, 2.25 for 97.5 percent and 2.57 for 99 percent. Default is 2.57.

alpha

Significance level (default is 0.05).

parallel

Calculate in parallel (Boolean, default is TRUE).

Value

The pruned tree results structure.


bwrc/astrid-r documentation built on May 13, 2019, 9:08 a.m.