Economic value for an ensemble.
Usage
ens_value(
.fcst,
parameter,
thresholds,
groupings = "lead_time",
show_progress = TRUE,
...
)
# S3 method for harp_ens_point_df
ens_value(
.fcst,
parameter,
thresholds,
groupings = "lead_time",
show_progress = TRUE,
fcst_model = NULL,
...
)Arguments
- .fcst
A
harp_dforharp_listobject with tables that have a column for observations, or a single forecast table.- parameter
The name of the column for the observations data. Can be the column name, quoted, or unquoted. If a variable it should be embraced - i.e. wrapped in
{{}}.- thresholds
A numeric vector of thresholds for which to compute the threshold based scores. Set to NULL (the default) to only compute summary scores.
- groupings
The groups for which to compute the scores. See group_by for more information of how grouping works.
- show_progress
Logical - whether to show progress bars. Defaults to
TRUE.- ...
Reserved for methods.
- fcst_model
The name of the forecast model to use in the
fcst_modelcolumn of the output. If the function is dispatched on aharp_listobject, the names of theharp_listare automatically used.
Value
A data frame with data grouped for the groupings column(s) and
a nested column for the economic value with each row containing a data
frame with columns: cl for cost loss, and value for the
economic value. Use unnest to unnest to the nested column.