Learn R Programming

eat (version 0.1.4)

RCV: RCV

Description

RCV

Usage

RCV(N, Lv, y, alphaIprim, fold, TAiv)

Value

Set of best pruning and the associated error calculated with test sets.

Arguments

N

Number of rows in data.

Lv

Test set.

y

Column output indexes in data.

alphaIprim

Alpha obtained as the square root of the product of two consecutive alpha values in tree_alpha list. It is used to find the best pruning tree.

fold

Parts in which the original data is divided into to perform Cross-Validation.

TAiv

List with each possible pruning for the deep tree generated with the train set and its associated alpha values.