Learn R Programming

PriorCD (version 0.1.0)

getROC: getROC

Description

This function is used to plot ROC.

Usage

getROC(drug.el, p0, gamma = 0.7, filename = "ROC.pdf")

Arguments

drug.el

A edge list of drugs, which is a two-column matrix, each row defines one edge. Numbers in the edge list represent NSC-ID of drugs.

p0

A vector of approved drugs' NSC-ID of interested cancer.

gamma

gamma=0.7(default). A probability of losing when doing Random Walk. On the contray, there is a probability of 1-gamma left to itself. The range of this value is (0, 1).

filename

filename = "ROC.pdf"(default). File name and path where to save the PDF. Filetype is decided by the extension in the path. Currently only .pdf formats are supported.

Value

ROC

Examples

Run this code
# NOT RUN {
e <- getData("drug.edgelist")
brc <- getData("breast_cancer")
# }
# NOT RUN {
getROC(e, brc)
# }

Run the code above in your browser using DataLab