cvlm | R Documentation |
The function checks linear models with cross-validation (out-of-sample prediction).
cvlm(y, x, subsize, iter = 100)
y |
dependent variable. |
x |
design matrix (should include constant if it is needed). |
subsize |
sample size of subsampling. |
iter |
number of iterations. |
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. |
Tsay, R. and Chen, R. (2018). Nonlinear Time Series Analysis. John Wiley & Sons, New Jersey.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.