my_rf_cv: Random Forest Cross Validation Function

Description Usage Arguments Value Examples

View source: R/my_rf_cv.R

Description

This function performs cross validation for values of k in random forest.

Usage

1

Arguments

k

A number representing the number of folds the data will be divided into.

Value

A number representing the mean cross-validation standard error for that number of folds.

Examples

1
2
3
4
library(randomForest)
library(dplyr)
my_rf_cv(2)
my_rf_cv(10)

oliverlinehan41/project3package documentation built on Dec. 22, 2021, 4:21 a.m.