| predict.diffusion {diffusion} | R Documentation |
Predict future periods of a fitted diffusion curve.
Description
Calculates the values for h future periods of a fitted diffusion curve.
Usage
## S3 method for class 'diffusion'
predict(object, h = 10, ...)
Arguments
object |
|
h |
Forecast horizon. |
... |
Unused argument. |
Value
Returns an object of class diffusion, which contains:
-
typediffusion curve type used -
callcalls function fitted -
wnamed vector of fitted parameters -
yactuals -
fitfitted values of model -
frcforecasts for future periods. -
mseinsample Mean Squared Error -
prewthewof the previous generation -
pvalp-values forw
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
Examples
fit <- diffusion(tsChicken[, 2])
fit <- predict(fit, 20)
plot(fit)
[Package diffusion version 0.4.0 Index]