View source: R/FcGeneralizedLinearModels4TS.R
FcGeneralizedLinearModels4TS | R Documentation |
Generalized linear models for the forecast of time series in the multivariate case
FcGeneralizedLinearModels4TS(Response, SplitAt, Predictor1, Predictor2 = NULL,
CorrectionFactor=FALSE, PlotIt = TRUE,Time, Summary = FALSE,...)
Response |
[1:n] vector with an value of each time j in [1,n] |
SplitAt |
scalar 'k' with k<n, index of row where the |
Predictor1 |
[1:n] vector with an value of each time j in [1,n] |
Predictor2 |
[1:n] vector with an value of each time j in [1,n]. Can also be |
Time |
Optional, [1:n] time vector in case of |
CorrectionFactor |
Scalar, if TRUE: the predicted time series will begin at the same point as the last value of the training set. All other values will be mulitplied by a factor accordingly. |
PlotIt |
Optional,FALSE (default), do nothing. TRUE: plots an evaluation of the forecast on the test data FALSE: Plots data model and prediction with |
Summary |
Output of |
... |
Further arguments passed to |
Assumption: Response
and 'Predictors' have the same time intervals, the same starting time and the same length.
list with
Forecast |
[k:n], the forecast, of the time interval [k,n] which was not used in the model |
TestSet |
[k:n], the part of Response not used in the model |
Accuracy |
ME, RMSE, MAE, MPE, MAPE of training and test dataset in a matrix |
Errors |
Residuals: TestSet-Forecast |
Model |
Output of |
Wrapper for glm
with some additional features
Michael Thrun
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.