cvrs.plot | R Documentation |
The function plots the risk scores.
cvrs.plot(cvrs, sens.pred)
cvrs |
A data frame of the risk scores. |
sens.pred |
A data frame of the predicted sensitivity statuses. |
A plot of the risk scores is produced and saved into a "CVRSplot.png" file.
Svetlana Cherlin, James Wason
analyse.simdata
and analyse.realdata
functions; plot
and print
methods.
#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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.