View source: R/print.grid.dma.R
print.grid.dma | R Documentation |
grid.dma
Object.The function prints selected outcomes obtained from grid.DMA
.
## S3 method for class 'grid.dma'
print(x, ...)
x |
an object of |
... |
not used |
The function prints Root Mean Squared Error (RMSE) and Mean Absolute Error (MAE) for all estimated models.
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,]
gra <- c(0.99,0.98,0.97)
grl <- c(0.99,0.95)
g1 <- grid.DMA(y=ld.wti,x=ld.drivers,grid.alpha=gra,grid.lambda=grl,initvar=1)
g2 <- grid.DMA(y=ld.wti,x=ld.drivers,grid.alpha=gra,grid.lambda=grl,initvar=1,model="dms")
print(g1)
print(g2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.