rocm | R Documentation |
This function computes the sequence of ROC curves which form the ROC Movie and produces a GIF animated ROCM.
rocm( response, predictor, a = NULL, b = NULL, object = FALSE, gif = TRUE, movie.name = "animation.gif", ... )
response |
a numeric vector of real valued responses. |
predictor |
a numeric vector of the same length than |
a |
selects a subset of all ROC curves for the ROC movie with at least |
b |
selects a subset of all ROC curves for the ROC movie with at least |
object |
if TRUE a list of ROC curves is returned (default |
gif |
if TRUE a gif animation is created. |
movie.name |
name of the movie (with extension). |
... |
parameters to control the behavior of the GIF animation using the external function ani.option from animation. |
The ROC movie can be used to visualize the performance of a real valued foreacsting problem. Therefore, a sequence of ROC curves is generated which can than be combined into a GIF animation. Each entry of the list consist of two vectors of length 1000 containing the values of farate (1-Specificity) and hitrate (sensitivity) and three values, namely the associated auc value, the weight and the threshold.
if object = TRUE
, this function returns a list of ROC curves.
## Not run: data(longley) response = longley$Employed predictor = longley$GNP rocm(response, predictor) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.