givitiCalibrationTest performs the calibration test associated to the
A numeric vector representing the binary outcomes.
The elements must assume only the values 0 or 1. The predictions
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
A character string specifying if the model has been fit on
the same dataset under evaluation (
An optional boolean vector specifying the subset of observations to be considered.
A numeric scalar between 0 and 1 representing 1 - the significance level adopted in the forward selection. By default is set to 0.95.
The maximum degree considered in the forward selection. By default is set to 4.
The calibration belt and the associated test can be used both to evaluate the calibration of the model in external samples or in the development dataset. However, the two cases have different requirements. When a model is evaluated on independent samples, the calibration belt and the related test can be applied whatever is the method used to fit the model. Conversely, they can be used on the development set only if the model is fitted with logistic regression.
A list of class
htest containing the following components:
The value of the test's statistic.
The p-value of the test.
The vector of coefficients hypothesized under the null hypothesis, that is, the parameters corresponding to the bisector.
A character string describing the alternative hypothesis.
A character string indicating what type of calibration test (internal or external) was performed.
The estimate of the coefficients of the polynomial logistic regression.
A character string giving the name(s) of the data.
to compute and plot the calibaration belt.
1 2 3 4 5 6 7 8 9
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.