The prevalence is the proportion of a population having a specific condition.
In binary classification, the condition refers to whether the target variable has the value
1
, that is, whether the target variable corresponds to the positive class.
addPrevalence(obj, plot.values = TRUE, digits = 3L, col = "grey")
[invisible(NULL)
].
[RBPObj
]
Data container for RBP curve.
[logical(1)
]
Whether the values of the corresponding measure should be added to the plot?
Default is FALSE
.
[numeric(1)
]
Indicates the number of decimal places for the values that are plotted when
plot.values = TRUE
.
Default is 3L
.
[character(1)
| numeric(1)
]
A specification for the plotting color.