givitiCheckData {givitiR} | R Documentation |
Check of data
Description
The function verifies that the data are compatible with the construction of the calibration belt. In particular, the function checks that the predictions provided do not complete separate the outcomes and that at least two events and non-events are present in the data.
Usage
givitiCheckData(o, e)
Arguments
o |
A numeric vector representing the binary outcomes.
The elements must assume only the values 0 or 1. The predictions
in |
e |
A numeric vector containing the probabilities of the
model under evaluation. The elements must be numeric and between 0 and 1.
The lenght of the vector must be equal to the length of the vector |
Value
The output is TRUE
if the data do not show any of the
reported problems. Otherwise, the function returns a string describing the
problem found.