my_rf_cv: My Random Forest Cross-Validation

Description Usage Arguments Value

View source: R/my_rf_cv.R

Description

This will predict an output using the covariates within the training data train.

Usage

1
my_rf_cv(trainx, trainy, k)

Arguments

trainx

input data frame containing columns of predictor variables.

trainy

response vector with length equal to number of rows of trainx

k

number of cross-validation folds.

Value

a numeric with the cross-validation error.


hugoliao330/stat302util documentation built on March 18, 2020, 12:12 a.m.