View source: R/measure.corlongterm.R
measure.corlongterm | R Documentation |
Function to compute the temporal correlation between the observed and predicted time series.
measure.corlongterm(
indexObs = NULL,
indexPrd = NULL,
obs,
prd,
dates,
method = c("pearson", "kendall", "spearman"),
t.aggr = "annual",
timescale = 1,
detrend = FALSE,
plot = FALSE
)
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: |
t.aggr |
Character. Temporal aggregation options. Current accepted values are either |
timescale |
Integer. Approximate filtering time scale (according to the |
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? |
A float number corresponding to the correlation coefficient of choice between the predicted and observed series.
D. Maraun, J. Bedia
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.