powered by
Calculates the values for h future periods of a fitted diffusion curve.
# S3 method for diffusion predict(object, h = 10, ...)
Returns an object of class diffusion, which contains:
diffusion
type diffusion curve type used
type
call calls function fitted
call
w named vector of fitted parameters
w
y actuals
y
fit fitted values of model
fit
frc forecasts for future periods.
frc
mse insample Mean Squared Error
mse
prew the w of the previous generation
prew
pval p-values for w
pval
diffusion object, produced using diffusion.
Forecast horizon.
Unused argument.
Oliver Schaer, info@oliverschaer.ch,
Nikoloas Kourentzes, nikoloas@kourentzes.com
diffusion.
fit <- diffusion(tsChicken[, 2]) fit <- predict(fit, 20) plot(fit)
Run the code above in your browser using DataLab