Description Usage Arguments Details Value See Also Examples
Perform a ROC analysis on a continuous variable for identifying a binary outcome.
1 2 3 4 |
object |
an object of class |
param |
the contrast parameter(s) that should be used to identify the observations inside the mask. character vector. REQUIRED. |
mask |
the binary contrast parameter that will be used as the outcome in the ROC analysis. character vector. REQUIRED. |
plot |
the type of the graphic to display? character or |
digit |
the number of digits used to round the data. positive integer. |
filename |
the name of the file used to export the plot. character. |
update.object |
should the resulting threshold analysis be stored in |
overwrite |
if a threshold analysis is already stored in |
... |
additional arguments to be passed to |
This function requires to have installed the ROCR package to work.
ARGUMENTS:
Arguments ...
must correspond to some of the following arguments : height
, numeric2logical
, path
, res
, unit
, verbose
, width
, window
.
Possible values for plot
are:
"ROC_Youden"
: display the ROC curve with the optimal threshold according to the Youden index.
"ROC_prev"
: display the ROC curve with the optimal threshold according to the utility function.
"boxplot_Youden"
: display a boxplot of the contrast parameter for each outcome with the optimal threshold according to the Youden index.
"boxplot_prev"
: display a boxplot of the contrast parameter for each outcome with the optimal threshold according to the utility function.
FALSE
: no graphic is displayed.
An data.frame containing for each mask the AUC and AUPRC value, the optimal threshold and the corresponding sensitivity and specificity for the Youden criteria and a utility function taking into account the prevalence.
selectDescStats
to select the mask caracteristics.
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## load a MRIaggr object
data("MRIaggr.Pat1_red", package = "MRIaggr")
## ROC analysis
res <- calcROCthreshold(MRIaggr.Pat1_red, param = c("DWI_t0","T2_FLAIR_t2"),
mask = c("MASK_DWI_t0","MASK_T2_FLAIR_t2"), numeric2logical = TRUE)
res <- calcROCthreshold(MRIaggr.Pat1_red, param = c("DWI_t0","T2_FLAIR_t2"),
mask = c("MASK_DWI_t0","MASK_T2_FLAIR_t2"), numeric2logical = TRUE,
plot = "boxplot_Youden",
update.object = TRUE, overwrite = TRUE)
selectDescStats(MRIaggr.Pat1_red, "Mask_threshold")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.