reduce.size | R Documentation |
fDMA
or grid.DMA
Outcomes.This functions reduces the size of dma
or grid.dma
object.
reduce.size(dma.object)
dma.object |
|
The information corresponding to each sub-model is erased. In particular, for the object produced by fDMA
$models
is reduced to one-row matrix to keep only colnames
, and $postmod
, $yhat.all.mods
and $p.dens.
are replaced by NA
. It can be useful if large number of models is considered.
dma
or grid.dma
object,
with the information corresponding to each sub-model erased
fDMA
, grid.DMA
.
wti <- crudeoil[-1,1]
drivers <- (lag(crudeoil[,-1],k=1))[-1,]
ld.wti <- (diff(log(wti)))[-1,]
ld.drivers <- (diff(log(drivers)))[-1,]
m1 <- fDMA(y=ld.wti,x=ld.drivers,alpha=0.99,lambda=0.90,initvar=10)
m2 <- reduce.size(m1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.