totalForecastCov: Sum covariance of forecasts across all series

Description Usage Arguments Value Examples

View source: R/dse2.R

Description

Sum covariance of forecasts across all series.

Usage

1
    totalForecastCov(obj, select=NULL)

Arguments

obj

An object as returned by forecastCov.

select

Series to be select for summation. With the default all series are selected.

Value

An object similar to that returned by forecastCov, with the covariance summed over all selected series.

Examples

1
2
3
4
5
data("eg1.DSE.data.diff", package="dse")
model1 <- estVARXar(eg1.DSE.data.diff)
model2 <- estVARXls(eg1.DSE.data.diff)
z <-  totalForecastCov(forecastCov(model1, model2,
                         data=trimNA(eg1.DSE.data.diff)))

dse documentation built on March 26, 2020, 7:12 p.m.