# CV

From forecast v7.3
by Rob Hyndman

##### Cross-validation statistic

Computes the leave-one-out cross-validation statistic (also known as PRESS -- prediction residual sum of squares), AIC, corrected AIC, BIC and adjusted R^2 values for a linear model.

- Keywords
- models

##### Usage

`CV(obj)`

##### Arguments

##### Value

##### See Also

##### Examples

```
y <- ts(rnorm(120,0,3) + 20*sin(2*pi*(1:120)/12), frequency=12)
fit1 <- tslm(y ~ trend + season)
fit2 <- tslm(y ~ season)
CV(fit1)
CV(fit2)
```

*Documentation reproduced from package forecast, version 7.3, License: GPL (>= 2)*

### Community examples

Looks like there are no examples yet.