print.dma | R Documentation |
dma
Object.The function prints selected outcomes obtained from fDMA
.
## S3 method for class 'dma'
print(x, ...)
x |
an object of |
... |
not used |
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
.
Called for printing.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.