plot.rapids: Plot risk scores, sensitivity and specificity from a "rapids"...

plot.rapidsR Documentation

Plot risk scores, sensitivity and specificity from a "rapids" object.

Description

Plot risk scores, sensitivity and specificity from a "rapids" object.

Usage

## S3 method for class 'rapids'
plot(x, ...)

Arguments

x

An object of class "rapids"

...

Other parameters to plot

Details

For simulated data, the following is plotted: ROC plots for predicting the sensitivity status, boxplots for the AUC, sensitivity and specificity, risk scores for the "cvrs" method (the risk scores from all of the simulation runs are shown on the same plot).

For real data, risk scores are plotted for the "cvrs" method. For real data analysed with the "cvasd" method, a message "nothing to plot" is printed.

Author(s)

Svetlana Cherlin, James Wason

See Also

cvrs.plot function and print method.

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 results
plot(simres.cvrs)

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