Debian Codegraph @

man/ROCR.hiv.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/zzz.R
3 \docType{data}
4 \name{ROCR.hiv}
5 \alias{ROCR.hiv}
6 \title{Data set: Support vector machines and neural networks applied to the
7 prediction of HIV-1 coreceptor usage}
8 \format{
9 A list consisting of the SVM (\code{ROCR.hiv$hiv.svm}) and NN
10 (\code{ROCR.hiv$hiv.nn}) classification data. Each of those is in turn a list
11 consisting of the two elements \code{$predictions} and \code{$labels} (10
12 element list representing cross-validation data).
13 }
14 \usage{
15 data(ROCR.hiv)
16 }
17 \description{
18 Linear support vector machines (libsvm) and neural networks (R package
19 nnet) were applied to predict usage of the coreceptors CCR5 and CXCR4
20 based on sequence data of the third variable loop of the HIV envelope
21 protein.
22 }
23 \examples{
24 library(ROCR)
25 data(ROCR.hiv)
26 attach(ROCR.hiv)
27 pred.svm <- prediction(hiv.svm$predictions, hiv.svm$labels)
28 pred.svm
29 perf.svm <- performance(pred.svm, 'tpr', 'fpr')
30 perf.svm
31 pred.nn <- prediction(hiv.nn$predictions, hiv.svm$labels)
32 pred.nn
33 perf.nn <- performance(pred.nn, 'tpr', 'fpr')
34 perf.nn
35 plot(perf.svm, lty=3, col="red",main="SVMs and NNs for prediction of
36 HIV-1 coreceptor usage")
37 plot(perf.nn, lty=3, col="blue",add=TRUE)
38 plot(perf.svm, avg="vertical", lwd=3, col="red",
39 spread.estimate="stderror",plotCI.lwd=2,add=TRUE)
40 plot(perf.nn, avg="vertical", lwd=3, col="blue",
41 spread.estimate="stderror",plotCI.lwd=2,add=TRUE)
42 legend(0.6,0.6,c('SVM','NN'),col=c('red','blue'),lwd=3)
43 }
44 \references{
45 Sing, T. & Beerenwinkel, N. & Lengauer, T. "Learning mixtures
46 of localized rules by maximizing the area under the ROC curve". 1st
47 International Workshop on ROC Analysis in AI, 89-96, 2004.
48 }
49 \keyword{datasets}