Time Series Prediction Comparison Test

Converts continuous probability values into binned discrete probability forecasts. This is useful in calculated Brier type scores for values with continuous probabilities. Each probability is assigned the value of the midpoint.

1 2 | ```
probcont2disc(x, bins = seq(0,1,0.1) )
``` |

`x` |
A vector of probabilities |

`bins` |
Bins. Defaults to 0 to 1 by 0.1 . |

A vector of discrete probabilities. E

This function is used within `brier`

.

Matt Pocernich

1 2 3 4 5 6 7 8 9 | ```
# probabilistic/ binary example
set.seed(1)
x <- runif(10) ## simulated probabilities.
probcont2disc(x)
probcont2disc(x, bins = seq(0,1,0.25) )
## probcont2disc(4, bins = seq(0,1,0.3)) ## gets error
``` |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.