Bootstrap on Leave-one-out CV with Logistic Regression.
Source:R/evaluate.R
Bootstrap_LOOCV_LR_AUC.Rd
Bootstrap on Leave-one-out CV with Logistic Regression.
Arguments
- df
a
data.frame
of gene expression count data. Required.- targetVec
a binary vector of the response variable. Should be the same number of rows as
df
. Required.- nboot
an integer specifying the number of bootstrap iterations.
Value
A list of length 2 with elements
- auc
A vector the length of
nboot
with the AUC from each bootstrap iteration.- byClass
A dataframe with number of rows equal to
nboot
. Each row contains the sensitivity, specificity, positive predictive value, negative predictive value, precision, recall, F1, prevalence, detection rate, detection prevalence and balanced accuracy for that bootstrap iteration.