valueMeasure1D | R Documentation |
Atomic function to compute VALUE measures from predicted and observed indices
valueMeasure1D(
indexObs = NULL,
indexPrd = NULL,
obs = NULL,
prd = NULL,
dates = NULL,
measure.codes
)
indexObs |
index computed from the observations |
indexPrd |
index computed from the predictions |
obs |
A vector of observations |
prd |
A vector of predictions |
dates |
dates |
measure.codes |
A character vector of measure codes to be computed. |
A named list of output measures
J. Bedia
data(tmin.det)
# Some indices, like correlation, are computed upon the raw time series
# (i.e. no previous index is computed)
valueMeasure1D(indexObs = NULL,
indexPrd = NULL,
obs = tmin.det$obs,
prd = tmin.det$pred,
measure.codes = c("ts.rp", "ts.rs"))
# In some cases, the date information is required, with an error if omitted:
valueMeasure1D(indexObs = NULL,
indexPrd = NULL,
obs = tmin.det$obs,
prd = tmin.det$pred,
dates = tmin.det$dates,
measure.codes = c("ts.rp", "ts.rs","ts.rpY"))
# However, most measures are computed upon previously calculated indices
indexObs <- valueIndex1D(ts = tmin.det$obs, index.codes = "AC1")
indexPrd <- valueIndex1D(ts = tmin.det$pred, index.codes = "AC1")
valueMeasure1D(indexObs = indexObs,
indexPrd = indexPrd,
measure.codes = c("bias", "biasRel","ratio"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.