getROC: getROC

Description Usage Arguments Value Examples

View source: R/getROC.R

Description

This function is used to plot ROC.

Usage

1
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

1
2
3
e <- getData("drug.edgelist")
brc <- getData("breast_cancer")
getROC(e, brc)

PriorCD documentation built on May 2, 2019, 7:28 a.m.