predict.diffusion: Predict future periods of a fitted diffusion curve.

Description Usage Arguments Value Note Author(s) See Also Examples

View source: R/diffusion.R

Description

Calculates the values for h future periods of a fitted diffusion curve.

Usage

1
2
## S3 method for class 'diffusion'
predict(object, h = 10, ...)

Arguments

object

diffusion object, produced using diffusion.

h

Forecast horizon.

...

Unused argument.

Value

Returns an object of class diffusion, which contains:

Note

This function populates the matrix frc of the diffusion object used as input.

Author(s)

Oliver Schaer, info@oliverschaer.ch,

Nikoloas Kourentzes, nikoloas@kourentzes.com

See Also

diffusion.

Examples

1
2
3
 fit <- diffusion(tsChicken[, 2])
 fti <- predict(fit,20)
 plot(fit)

diffusion documentation built on May 2, 2019, 9:38 a.m.