cvrs.plot: Plot the risk scores.

View source: R/extras.R

cvrs.plotR Documentation

Plot the risk scores.

Description

The function plots the risk scores.

Usage

cvrs.plot(cvrs, sens.pred)

Arguments

cvrs

A data frame of the risk scores.

sens.pred

A data frame of the predicted sensitivity statuses.

Details

A plot of the risk scores is produced and saved into a "CVRSplot.png" file.

Author(s)

Svetlana Cherlin, James Wason

See Also

analyse.simdata and analyse.realdata functions; plot and print methods.

Examples

#Analyse simulated data and plot the risk scores
#"cvrs" method
data(simdata)
sig = 0.05
group.prop.sig = 0.2
seed = 123
plotrs = T
method = "cvrs"
eta = NULL
R = NULL
G = NULL
simres.cvrs = analyse.simdata(simdata, sig, group.prop.sig, method, eta, R, G, seed, plotrs)
 #Plot the risk scores
cvrs.plot(simres.cvrs$cvrs, simres.cvrs$sens.pred)

svetlanache/rapids documentation built on Sept. 15, 2023, 7 a.m.