View source: R/summary.grid.roll.reg.R
summary.grid.roll.reg | R Documentation |
grid.roll.reg
Objects.The function summarizes outcomes obtained from grid.roll.reg
.
## S3 method for class 'grid.roll.reg'
summary(object, ...)
object |
an object of |
... |
not used |
The function produces the outcomes as print.grid.roll.reg
.
Additionally, it finds the model minimizing Root Mean Squared Error (RMSE) and minimizing Mean Absolute Error (MAE).
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
grw <- c(50,100,150)
g <- grid.roll.reg(y=ld.wti,x=ld.drivers,grid.window=grw)
summary(g)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.