as_forecast_quantile | R Documentation |
forecast
object for quantile-based forecastsCreate a forecast
object for quantile-based forecasts. See more information
on forecast types and expected input formats by calling ?
as_forecast()
.
When creating a forecast_quantile
object from a forecast_sample
object,
the quantiles are estimated by computing empircal quantiles from the samples
via quantile()
. Note that empirical quantiles are a biased estimator for
the true quantiles in particular in the tails of the distribution and
when the number of available samples is low.
as_forecast_quantile(data, ...)
## Default S3 method:
as_forecast_quantile(
data,
forecast_unit = NULL,
observed = NULL,
predicted = NULL,
quantile_level = NULL,
...
)
## S3 method for class 'forecast_sample'
as_forecast_quantile(
data,
probs = c(0.05, 0.25, 0.5, 0.75, 0.95),
type = 7,
...
)
data |
A data.frame (or similar) with predicted and observed values.
See the details section of |
... |
Unused |
forecast_unit |
(optional) Name of the columns in |
observed |
(optional) Name of the column in |
predicted |
(optional) Name of the column in |
quantile_level |
(optional) Name of the column in |
probs |
A numeric vector of quantile levels for which
quantiles will be computed. Corresponds to the |
type |
Type argument passed down to the quantile function. For more
information, see |
Other functions to create forecast objects:
as_forecast
,
as_forecast_binary()
,
as_forecast_nominal()
,
as_forecast_point()
,
as_forecast_sample()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.