Relative Operating Characteristics for an ensemble.
Usage
ens_roc(
.fcst,
parameter,
thresholds,
groupings = "lead_time",
show_progress = TRUE,
...
)
# S3 method for harp_ens_point_df
ens_roc(
.fcst,
parameter,
thresholds,
groupings = "lead_time",
show_progress = TRUE,
fcst_model = NULL,
...
)
Arguments
- .fcst
A
harp_df
orharp_list
object 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_model
column of the output. If the function is dispatched on aharp_list
object, the names of theharp_list
are automatically used.
Value
A data frame with data grouped for the groupings
column(s) and
a nested column for the ROC with each row containing a data frame with
columns: prob
for the forecast probability bin, HR
for the
hit rate and FAR
for the false alarm rate. Use unnest
to unnest to the nested column.