Description Usage Arguments Value
The 'rocplot' command generates a receiver operator characteristic plot to compare the in-sample (default) or out-of-sample fit for two logit or probit regressions.
1 2 3 4 5 6 7 8 9 10 |
z1 |
first model |
z2 |
second model |
cutoff |
A vector of cut-off values between 0 and 1, at which to evaluate the proportion of 0s and 1s correctly predicted by the first and second model. By default, this is 100 increments between 0 and 1 inclusive |
lty1 |
the line type of the first model (defaults to 'line') |
lty2 |
the line type of the second model (defaults to 'dashed') |
lwd1 |
the line width of the first model (defaults to 1) |
lwd2 |
the line width of the second model (defaults to 1) |
col1 |
the color of the first model (defaults to 'black') |
col2 |
the color of the second model (defaults to 'black') |
main |
a title for the plot (defaults to "ROC Curve") |
xlab |
a label for the X-axis |
ylab |
a lavel for the Y-axis |
plot |
whether to generate a plot to the selected device |
... |
additional parameters to be passed to the plot |
if plot is TRUE, rocplot simply generates a plot. Otherwise, a list with the following is produced:
roc1 |
a matrix containing a vector of x-coordinates and y-coordinates corresponding to the number of ones and zeros correctly predicted for the first model. |
roc2 |
a matrix containing a vector of x-coordinates and y-coordinates corresponding to the number of ones and zeros correctly predicted for the second model. |
area1 |
the area under the first ROC curve, calculated using Reimann sums. |
area2 |
the area under the second ROC curve, calculated using Reimann sums. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.