Learn R Programming

morf (version 1.0.0)

check_mtry: Check Argument mtry

Description

Check Argument mtry

Usage

check_mtry(mtry, nv)

Value

Appropriate value of mtry.

Arguments

mtry

Number of covariates to possibly split at in each node. Default is the (rounded down) square root of the number of covariates. Alternatively, one can pass a single-argument function returning an integer, where the argument is the number of covariates.

nv

Number of covariates.