Skip to content

Commit 032cfa5

Browse files
committed
Don't require the ROCR package in vignette
1 parent 09968e6 commit 032cfa5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vignettes/articles/presence-only.Rmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,12 +231,12 @@ To evaluate the predictive performance, there are multiple options for binary da
231231
AUC (Area Under the receiver operating characteristic curve) is a common metric, where values near 0.5 are essentially random, and values close to 1 indicate better predictive performance.
232232
We can use the package [ROCR](https://cran.rstudio.com/web/packages/ROCR/vignettes/ROCR.html).
233233

234-
```{r auc, echo=TRUE}
234+
```{r auc, echo=TRUE, eval=FALSE}
235235
all_dat$p <- predict(fit)$est # total predictions, logit
236236
rocr <- ROCR::prediction(exp(all_dat$p), all_dat$present)
237237
ROCR::performance(rocr, measure = "auc")@y.values[[1]]
238238
```
239239

240-
```{r echo=FALSE}
240+
```{r echo=FALSE, eval=FALSE}
241241
AUC <- ROCR::performance(rocr, measure = "auc")@y.values[[1]]
242242
```

0 commit comments

Comments
 (0)