print.reg | R Documentation |
reg
Object.The function prints selected outcomes obtained from roll.reg
and rec.reg
.
## S3 method for class 'reg'
print(x, ...)
x |
an object of |
... |
not used |
The function prints mean regression coefficients from the analyzed period, Root Mean Squared Error (RMSE) and Mean Absolute Error (MAE) from the estimated model. For roll.reg
it also shows the size of a rolling window.
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,]
roll <- roll.reg(y=ld.wti,x=ld.drivers,window=100)
rec <- rec.reg(y=ld.wti,x=ld.drivers)
print(roll)
print(rec)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.