cpopt: Find the optimal complexity parameter value

Description Usage Arguments Value Author(s) Examples

View source: R/cpopt.R

Description

The function finds the complexity parameter that is most optimal for reducing cross validation error.

Usage

1
cpopt(df, conserve = FALSE)

Arguments

df

A dataframe with columns of Start.Pos and log2r

conserve

The default is FALSE. When TRUE the optimal complexity parameter has a minimum around .01 to reduce the chance of overfitting. When FALSE the optimal complexity has a minimum around .001.

Value

The optimal complexity parameter in numeric format

Author(s)

Annika Cleven

Examples

1
2
 my <- cpopt(df)
 print(my)

annikacleven/regtreesegpackage documentation built on Dec. 19, 2021, 3:40 a.m.