R/mROC.R
mROC_inference.Rd
Statistical inference for comparing empirical and expected ROCs. If CI=TRUE then also returns pointwise CIs
mROC_inference(y, p, n_sim = 1e+05, CI = FALSE, aux = FALSE, fast = TRUE)
vector of binary response values
vector of probabilities
number of Monte Carlo simulations to calculate p-value
optional. Whether confidence interval should be calculated for each point of mROC. Default is FALSE.
aux optional. whether additional results (component-wise p-values etc) should be written in the package's aux variable. Default is FALSE.
fast optional. Whether the fast code (C++) or slow code (R) should be called. Default is TRUE (R code will be slow unless the dataset is small)
Returns an object of type mROC_inference containing the results of statistical inference for the mROC curve