givitiCheckData: Check of data

Description Usage Arguments Value

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

1

Arguments

o

A numeric vector representing the binary outcomes. The elements must assume only the values 0 or 1. The predictions in e must represent the probability of the event coded as 1.

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 o.

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.


givitiR documentation built on May 2, 2019, 10:58 a.m.