print.dma {fDMA} | R Documentation |
Prints dma
Object.
Description
The function prints selected outcomes obtained from fDMA
.
Usage
## S3 method for class 'dma'
print(x, ...)
Arguments
x |
an object of |
... |
not used |
Details
The function prints parameters of an argument x
, Root Mean Squared Error (RMSE) and Mean Absolute Error (MAE) from the estimated model. It also shows the number of observations, the number of models in averaging (selecting) procedure and the number of variables (including constant) used in the model. The number of models does not include the increase, if multiple lambda
is used. The function also shows forecast quality measures for alternative forecasting methods, i.e., naive forecast (see also altf
) and, if computed, for Auto ARIMA auto.arima
.
Value
Called for printing.
Examples
wti <- crudeoil[-1,1]
drivers <- (lag(crudeoil[,-1],k=1))[-1,]
ld.wti <- (diff(log(wti)))[-1,]
ld.drivers <- (diff(log(drivers)))[-1,]
m1 <- fDMA(y=ld.wti,x=ld.drivers,alpha=0.99,lambda=0.99,initvar=1,model="dma")
m2 <- fDMA(y=ld.wti,x=ld.drivers,alpha=0.99,lambda=0.99,initvar=1,model="dms")
print(m1)
print(m2)
[Package fDMA version 2.2.7 Index]