measure.cor: Correlation

View source: R/measure.cor.R

measure.corR Documentation

Correlation

Description

Function to compute the temporal correlation between the observed and predicted time series.

Usage

measure.cor(indexObs = NULL, indexPrd = NULL, obs, prd, dates,
  method = c("pearson", "kendall", "spearman"), deseason = NULL,
  aggregation = NULL)

Arguments

indexObs

index computed from the observations

indexPrd

index computed from the predictions

obs

A vector of observations

prd

A vector of predictions

dates

dates

method

Type of correlation applied. Options: c("pearson","kendall","spearman").

deseason

Default to NULL, and ignored. Only used if removal of the seasonal cycle is to be done. In this case, this is an integer number indicating the width, in days, of the window used for moving average computation of the reference daily climatology. This argument is passed to deseason.VALUE via wrapperFUN.

aggregation

temporal aggregation options

Value

A float number corresponding to the correlation coefficient of choice between the predicted and observed series.

Author(s)

J. Bedia, D. San-Martin, S. Herrera


SantanderMetGroup/R_VALUE documentation built on July 4, 2023, 4:27 a.m.