# Data from Mason and Graham article.
a<- c(0,0,0,1,1,1,0,1,1,0,0,0,0,1,1)
b<- c(.8, .8, 0, 1,1,.6, .4, .8, 0, 0, .2, 0, 0, 1,1)
c<- c(.928,.576, .008, .944, .832, .816, .136, .584, .032, .016, .28, .024, 0, .984, .952)
A<- data.frame(a,b,c)
names(A)<- c("event", "p1", "p2")
## for model with ties
roc.plot(A$event, A$p1)
## for model without ties
roc.plot(A$event, A$p2)
### show binormal curve fit.
roc.plot(A$event, A$p2, binormal = TRUE)
# icing forecast
data(prob.frcs.dat)
A <- verify(prob.frcs.dat$obs, prob.frcs.dat$frcst/100)
plot(A, titl = "AWG Forecast")
# plotting a ``prob.bin'' class object.
obs<- round(runif(100))
pred<- runif(100)
A<- verify(obs, pred, frcst.type = "prob", obs.type = "binary")
roc.plot(A, main = "Test 1", binormal = TRUE)Run the code above in your browser using DataLab