Skip to contents

$$\hat{y}_{T+h|T} = y_T$$ Hyndman & Athanasopoulos, FPP 3rd ed., Sec. 5.2: "we simply set all forecasts to be the value of the last observation".

Usage

Naivefc(y, h = 1L)

Arguments

y

Observed series.

h

Forecast horizon.

Value

Named list with estimate, last, residual_sd, n, method.

References

Hyndman & Athanasopoulos, FPP3, Sec. 5.2.

Examples

Naivefc(c(1, 2, 3, 5), 3)$estimate
#> [1] 5 5 5