Learn R Programming

RFmarkerDetector (version 1.0.1)

plotOOBvsMTRY: Plotting the average OOB error and its 95% confidence interval as a function of the mtry parameter

Description

Plotting the average OOB error and its 95% confidence interval as a function of the mtry parameter

Usage

plotOOBvsMTRY(mean_matrix, ci_matrix)

Arguments

mean_matrix
a 1 x p matrix where p is the number of mtry values tested. Each value represents the average OOB error obtained training multiple Random Forest models with a defined value of mtry
ci_matrix
a 2 x p matrix containing the extremes of the confidence interval of the average OOB error.

Value

a graphical representation of the average OOB error as a function of the mtry parameter.

Examples

Run this code
## data(cachexiaData)
## res <- tuneMTRY(cachexiaData, iterations = 5, maxntree = 600, mtry_length = 10, graph = F)
## l <- optimizeMTRY(res$oob)
## plotOOBvsMTRY(l$mean_matrix, l$ci_matrix)

Run the code above in your browser using DataLab