bias_adjust | R Documentation |
To produce forecast means (instead of forecast medians) it is necessary to adjust the back-transformation function relative to the forecast variance.
bias_adjust(bt, sd)
bt |
The back-transformation function |
sd |
The forecast standard deviation |
More details about bias adjustment can be found in the transformations vignette: read the vignette:
vignette("transformations", package = "fable")
adj_fn <- bias_adjust(function(x) exp(x), 1:10)
y <- rnorm(10)
exp(y)
adj_fn(y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.