Description Usage Arguments Details Value
View source: R/ML_error_function.R
Returns the estimated accurasy measures of Sensitivity, Specificity, and Misclassification using Confusion matrix.
1 2 3 |
data |
A matrix of the whole training data set for coefficients' esimates |
newdata |
A matrix of a testing data |
importance_measure |
A vector of importance measures obtained from Random Forest model |
add.vars |
?? |
rdit |
?? |
depVar |
An outcome variable |
indVar |
A list of candidate predictors |
ML |
A ML method to apply |
This is a generic function. The candidate predictors are a series of forward-in variables which can be picked by the variables ranked by importance measures or user-defined ones in 'depvar' parameter. Their coefficients are estimated or the decision tree is built by by the whole training data.
ML.err.vect A data frame including estimated accuracy measures
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.