ens_rank_histogram: Rank histogram for an ensemble.

View source: R/ens_rank_histogram.R

ens_rank_histogramR Documentation

Rank histogram for an ensemble.

Description

The rank histogram is computed as columns in a harp_fcst object. Typically the scores are aggregated over lead time, but other grouping variables can be chosen.

Usage

ens_rank_histogram(
  .fcst,
  parameter,
  groupings = "leadtime",
  jitter_fcst = NULL
)

Arguments

.fcst

A harp_fcst object with tables that have a column for observations, or a single forecast table.

parameter

The name of the column for the observed data.

groupings

The groups for which to compute the ensemble mean and spread. See group_by for more information of how grouping works.

jitter_fcst

A function to perturb the forecast values by. This is used to account for observation error in the rank histogram. For other statistics it is likely to make little difference since it is expected that the observations will have a mean error of zero.

Value

An object of the same format as the inputs but with data grouped for the groupings column(s) and columns for rank and rank_count that are nested together in a column with the name rank_histogram.


andrew-MET/harpPoint documentation built on Feb. 23, 2023, 1:06 a.m.