my_rf_cv: random forest function

Description Usage Arguments Value Examples

View source: R/my_rf_cv.R

Description

This function predicts the lifeExp in my_gapminder dataset by gdpPercap with k-fold Cross-validation and random forest algorithms.

Usage

1

Arguments

k

Numeric number of folds used in k-fold cross-validation

Value

Numeric number of the CV mean squared error

Examples

1

SylviaDu99/Project3Package documentation built on March 24, 2020, 5:29 p.m.