predict.Dimora {DIMORA} | R Documentation |
Predict method for Dimora objects
Description
Prediction of test data using any model of the package.
Usage
## S3 method for class 'Dimora'
predict(object, ..., newx)
Arguments
object |
an object of class |
newx |
a number or a vector of numeric values rapresenting the time window (see |
... |
additional arguments affecting the predictions produced. |
Details
It works only for univariate models; specifically, for the models BM
, GBM
, GGM
, it returns a vector of the cumulative predicted values.
Value
The method returns a vector of predicted values.
Author(s)
Zanghi Federico: federico.zanghi.11@gmail.com
Savio Andrea: svandr97@gmail.com
Ziliotto Filippo: filippo.ziliotto1996@gmail.com
Bessi Alessandro: alessandrobessi92@gmail.com
See Also
The Dimora models: BM
, GBM
, GGM
, UCRCD
.
summary.Dimora
for summaries.
plot.Dimora
for graphics and residuals analysis.
make.instantaneous
to create instantaneous series from the cumulative one.
Examples
data(DBdimora)
iphone <- DBdimora$iPhone[7:52]
M1 <- BM(iphone)
# Predict the values of the observed series (lenght(iphone)=46)
predict.Dimora(M1, newx = c(1:46))
# Predict the values of the observed series and other 34 future values
predict.Dimora(M1, newx = c(1:80))