View source: R/predict.Dimora.R
predict.Dimora | R Documentation |
Prediction of test data using any model of the package.
## S3 method for class 'Dimora'
predict(object, ..., newx)
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. |
It works only for univariate models; specifically, for the models BM
, GBM
, GGM
, it returns a vector of the cumulative predicted values.
The method returns a vector of predicted values.
Zanghi Federico: federico.zanghi.11@gmail.com
Savio Andrea: svandr97@gmail.com
Ziliotto Filippo: filippo.ziliotto1996@gmail.com
Bessi Alessandro: alessandrobessi92@gmail.com
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.
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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.