calculate_auc {inferCSN} | R Documentation |
Calculate AUPRC and AUROC values
Description
Calculate AUPRC and AUROC values
Usage
calculate_auc(
network_table,
ground_truth,
plot = FALSE,
line_color = "#1563cc",
line_width = 1
)
Arguments
network_table |
The weight data table of network |
ground_truth |
Ground truth for calculate AUC |
plot |
If true, draw and print figure of AUC |
line_color |
The color of line in the figure |
line_width |
The width of line in the figure |
Value
AUC values and figure
Examples
data("example_matrix")
data("example_ground_truth")
network_table <- inferCSN(example_matrix)
calculate_auc(network_table, example_ground_truth, plot = TRUE)
[Package inferCSN version 1.0.8 Index]