could not find function "roc"
时间: 2023-07-02 12:05:33 浏览: 441
The "roc" function is not a built-in function in R. It is part of the "pROC" package, which needs to be installed and loaded before you can use the "roc" function. You can install it using the following command:
``` r
install.packages("pROC")
```
Once the package is installed, you can load it using the following command:
``` r
library(pROC)
```
After loading the package, you can use the "roc" function to compute the Receiver Operating Characteristic (ROC) curve for binary classification models.
阅读全文