pROC 1.17.0.1

pROC version 1.17.0.1 is available on CRAN now. Besides several bug fixes and small changes, it introduces more values in input of coords.

Here is an example:

library(pROC)
data(aSAH)
rocobj <- roc(aSAH$outcome, aSAH$s100b)
coords(rocobj, x = seq(0, 1, .1), input="recall", ret="precision")
#    precision
# 1        NaN
# 2  1.0000000
# 3  1.0000000
# 4  0.8601399
# 5  0.6721311
# 6  0.6307692
# 7  0.6373057
# 8  0.4803347
# 9  0.4517906
# 10 0.3997833
# 11 0.3628319

Getting the update

The update his available on CRAN now. You can update your installation by simply typing:

install.packages("pROC")

Here is the full changelog:

1.17.0.1 (2020-01-07):

1.17.0 (2020-12-29)

Xavier Robin
Publié le mercredi 13 janvier 2021 à 16:19 CET
Lien permanent : /blog/2021/01/13/proc-1.17.0.1
Tags : pROC
Commentaires : 2

Commentaires

Par Jose Juan Pereyra Rodriguez le vendredi 23 juillet 2021 à 13:04 CEST

Hi! I have installed the pROC package a month ago with the following code without problems:
#load and call the necessary package.
install.packages ("pROC")
library ("pROC")

#import the excel.
library (readxl)
dfcor <- read_excel ("C: /Users/pe3re/Downloads/Curvas-COR-master/Curvas-COR-master/FCM.xlsx", col_types = c ("numeric", "numeric"))



roc <-roc (dfcor $ true, dfcor $ pred)

plot (roc)

auc (roc)


#we draw the curve beautiful.
#insert AUC and IC
rocobj <- plot.roc (dfcor $ true, dfcor $ pred, main = "Confidence intervals", percent = TRUE, ci = TRUE, print.auc = TRUE)

#we create object to plot the default CI at 95% CI. Boots Default: 2000.
ciobj <- ci.se (rocobj, specificities = seq (0, 100, 5))
#insert the IC
plot (ciobj, type = "shape", col = "# 1c61b6AA") # plot as a blue shape

Today I have updated to the new version and it has given me problems. I have followed the code on the page and I get the same error again when using the confidence intervals:

roc1 <- roc (true ~ pred, dfcor, percent = TRUE,
ci = TRUE, boot.n = 100, ci.alpha = 0.9, stratified = FALSE,
plot = TRUE, auc.polygon = TRUE, max.auc.polygon = TRUE, grid = TRUE,
print.auc = TRUE, show.thres = TRUE)

Error in delongPlacementsCpp (roc):
package 'Rcpp_precious_remove' does not offer function 'Rcpp'

Par Xavier le lundi 27 décembre 2021 à 10:48 CET

An answer was given on the GitHub issue tracker (#99).

Nouveau commentaire

* L'astérisque dénote un champ obligatoire.

En soumettant votre message, vous acceptez qu' il soit publié sous licence CC BY-SA 3.0.

Quelques balises HTML sont autorisées : a[href, hreflang, title], br, em, i, strong, b, tt, samp, kbd, var, abbr[title], acronym[title], code, q[cite], sub, sup.

Switch to English

Chercher

Tags

Bruit de fond Hobbys Humour Informatique Internet Livres Logiciels Moi Mon site web Mozilla Photo Politique Programmation Scolaire Ubuntu pROC

Billets récents

Calendrier

lun.mar.mer.jeu.ven.sam.dim.
123
45678910
11121314151617
18192021222324
25262728293031

Syndication

Recommender