cvlm: Check linear models with cross validation

Description Usage Arguments Value References

Description

The function checks linear models with cross-validation (out-of-sample prediction).

Usage

1
cvlm(y, x, subsize, iter = 100)

Arguments

y

dependent variable.

x

design matrix (should include constant if it is needed).

subsize

sample size of subsampling.

iter

number of iterations.

Value

The function returns a list with following components.

rmse

root mean squares of forecast errors for all iterations.

mae

mean absolute forecast errors for all iterations.

References

Tsay, R. and Chen, R. (2019). Nonlinear Time Series Analysis. Wiley, New Jersey.


ConvFuncTimeSeries/test_t documentation built on May 29, 2019, 1:39 p.m.