measure.corlongterm: Correlation on Long time scales

View source: R/measure.corlongterm.R

measure.corlongtermR Documentation

Correlation on Long time scales

Description

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

Usage

measure.corlongterm(indexObs = NULL, indexPrd = NULL, obs, prd, dates,
  method = c("pearson", "kendall", "spearman"), t.aggr = "annual",
  timescale = 1, detrend = FALSE, plot = FALSE)

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

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

t.aggr

Character. Temporal aggregation options. Current accepted values are either "annual" or "seasonal".

timescale

Integer. Approximate filtering time scale (according to the t.aggr units).

detrend

Logical. Whether the aggregated time series should be linearly detrended prior to filtering

plot

Logical, for internal use only. Should the original (aggregated) and filtered series be plotted?

Value

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

Author(s)

D. Maraun, J. Bedia


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