rkhist.listR Documentation

Method of S3 generic function rkhist for list objects

Description

This is the method called when the fcst argument in function rkhist is a list.

Usage

## S3 method for class 'list'
rkhist(fcst, obs, names = NULL, ...)

Arguments

fcst

an object containing the ensemble forecasts. It must be a list, each entry containing the forecast of one ensemble. The forecast of each ensemble is a matrix whose rows contain one forecast.

obs

an object containing the observation associated to the forecast in fcst. It can be a vector or a list, whose length is the same as the number of row in fcst If a vector, it is used as the observation vector for all the ensemble in fcst. If it is a list, each entry is associated to the same entry in fcst.

names

a character vector. The row names in the returned rkhist object. If missing, the row names are the names of the list fcst (if any).

...

additional arguments, passed to function base::rank.

Value

An S3 object of class rkhist (indeed an N-row matrix containing the count for each rank, with class "rkhist"). N is the length of fcst, i.e. the number of ensembles.