View source: R/print.grid.tvp.R
print.grid.tvp | R Documentation |
grid.tvp
Object.The function prints selected outcomes obtained from grid.tvp
.
## S3 method for class 'grid.tvp'
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 <- drivers[-1,]
ld.drivers[,c(4,6)] <- (diff(drivers[,c(4,6)]))[-1,]
ld.drivers[,c(1:2,5,7)] <- (diff(log(drivers[,c(1:2,5,7)])))[-1,]
ld.drivers[,c(3,6)] <- ld.drivers[,c(3,6)]/100
grl <- c(0.99,0.98,0.97,0.96,0.95)
g <- grid.tvp(y=ld.wti,x=ld.drivers,V=1,grid.lambda=grl)
print(g)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.