View source: R/aggregation.brier.R
aggregation.brier | R Documentation |
Evaluate the Brier score, i.e. prediction error, for a fitted model on new data. To be used as argument aggregation.fun
in peperr
call.
aggregation.brier(full.data=NULL, response, x, model, cplx=NULL,
type=c("apparent", "noinf"), fullsample.attr = NULL, ...)
full.data |
passed from |
response |
vector of binary response. |
x |
|
model |
model fitted as returned by a |
cplx |
passed from |
type |
character. |
fullsample.attr |
passed from |
... |
additional arguments, passed to |
The empirical Brier score is the mean of the squared difference of the risk prediction and the true value of all observations and takes values between 0 and 1, where small values indicate good prediction performance of the risk prediction model.
Scalar, indicating the empirical Brier score.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.