optimal_size: Selecting an optimal tree size

Description Usage Arguments Details Value Examples

View source: R/FunFor.R

Description

This function is to find a optimal tree size

Usage

1
optimal_size(formula, data, npc = NULL, n_folds = 5)

Arguments

formula

Formula of model fitted

data

All the data

npc

Number of PCs

n_folds

Number of folds in cross-validation

Details

This function is used to determine the optimal size of a tree fit. See ?FunFor, the main function, for example.

Value

An integer for optimal tree size.

Examples

1

xiaotiand/FunFor documentation built on Dec. 23, 2021, 6:18 p.m.