print.grid.roll.reg: Prints 'grid.roll.reg' Object.

View source: R/print.grid.roll.reg.R

print.grid.roll.regR Documentation

Prints grid.roll.reg Object.

Description

The function prints selected outcomes obtained from grid.roll.reg.

Usage

## S3 method for class 'grid.roll.reg'
print(x, ...)

Arguments

x

an object of grid.roll.reg class

...

not used

Details

The function prints Root Mean Squared Error (RMSE) and Mean Absolute Error (MAE) for all estimated models.

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,]

grw <- c(50,100,150)
g <- grid.roll.reg(y=ld.wti,x=ld.drivers,grid.window=grw)

print(g)


fDMA documentation built on July 26, 2023, 6:09 p.m.