| brier_score | R Documentation | 
This function takes a observations vector y and matching predictions vector π. It returns the Brier score for the predictions. Unless specified otherwise, input containing NAs will result with an NA.
brier_score(y, pi, na.rm = FALSE)
| y | the obsrevations vector | 
| pi | the predictions vector | 
| na.rm | ignore NA? (optional) | 
The Brier score \frac{1}{N}∑_{i=1}^{N}{(y_i-π_i)^2}
brier_score(rbinom(10,1,seq(0.1, 1, 0.1)), seq(0.1, 1, 0.1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.