grid.tvp {fDMA} | R Documentation |
Computes tvp
Function for Multiple Values of lambda
.
Description
Sometimes it is necessary to consider various values of parameter lambda
in Time-Varying Parameters Regression. This function computes tvp
function for all values of lambda
for a given grid.
This function is a wrapper of tvp
.
Usage
grid.tvp(y,x,V,grid.lambda,W=NULL,kappa=NULL,parallel.grid=NULL,c=NULL)
Arguments
y |
see |
x |
see |
V |
see |
grid.lambda |
|
W |
optional, see |
kappa |
optional, see |
parallel.grid |
optional, |
c |
optional, see |
Value
an object of class grid.tvp
, list
of
$models |
|
$fq |
|
See Also
print.grid.tvp
, summary.grid.tvp
, plot.grid.tvp
.
Examples
wti <- crudeoil[-1,1]
drivers <- (lag(crudeoil[,-1],k=1))[-1,]
ld.wti <- (diff(log(wti)))[-1,]
ld.drivers <- (diff(log(drivers)))[-1,]
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)
# extract model with lambda=0.95
model <- g$models[[5]]
[Package fDMA version 2.2.7 Index]