crossval: Cross-validation

Description Usage Arguments Value Author(s) Examples

Description

Applies a cross-validation of DS results, using the same strategy as in the DS exercise. Any step-wise screening is applied for each iteration independently of that used to identify the subset of skillful predictors in the original analysis. The model coeffiecients (beta) is saved for each iteration, and both correlation and root-mean-squared-error are returned as scores.

Usage

1
2
3
crossval(x, m=5, ...)
crossval.ds(x, m=5, ...)
crossval.list(x, m=5, ...)

Arguments

x

The results from DS.

m

window with - leave m-out for each iteration.

Value

Cross-validation object.

Author(s)

R.E. Benestad

Examples

1
2
3
4
5
6
7
data(Oslo)
t2m <- t2m.NCEP(lon=c(-20,40),lat=c(45,65))
eof <- EOF(t2m,1)

ds <- DS(Oslo,eof)
xv <- crossval(ds)
plot(xv)

metno/esd.test documentation built on May 22, 2019, 7:49 p.m.