GVECM_GF: Compute the structural coefficients matrices G0, G1, G2, and...

View source: R/09GVECM_GF.R

GVECM_GFR Documentation

Compute the structural coefficients matrices G0, G1, G2, and F1, F2

Description

Compute the structural coefficients matrices G0, G1, G2, and F1, F2

Usage

GVECM_GF(data,p,type="const",ic="AIC",weight.matrix)

Arguments

data

Dataframe is a strictly balanced panel data format,the first column is cross-section ID,and the second column is Time. For the sake of identification, both columns must be named by, respectively, id and Time.

p

The number of lag for Xt matrix. The number of lag for foreign variables in country-specific VAR FLag is set to be p+1.Current version restricts p <= 2 for simplicity, which aims at avoiding too many paramaters in low-frequency data of many variables and many countries. It will be relaxed soon.

type

Model specificaiton for VAR. As in package vars, we have four selection: "none","const","trend", "both".

ic

Information criteria for optimal lag.As in package vars, we have four selection: "AIC", "HQ", "SC", "FPE".

weight.matrix

Bilateral trade weight matrix for computing foreign variables. If the computation of foreign variables are weighted by one weighting matrix, weight.matrix must be a "data.frame". If the computation of foreign variables are weighted on a year-to-year basis, then weight.matrix must be a "list", with the same length as the weighting frequency.

Details

This function generates several structural coefficient matrices of Eq.(2.6) in Filippo and Pesaran(2013, P.17), which are required to compute IRF and multistep forecasts. Besides, it also re-calculates the transformed residuals. In this version, we do not include the impulse responses function(IRF), because the IRF can be computed by these matrices and residuals easily. We will not update it until the next version.

Value

G0

Matrix G0 of Eq.(2.6) in Filippo and Pesaran(2013, P.17)

G1

Matrix G1 of Eq.(2.6) in Filippo and Pesaran(2013, P.17)

G2

Matrix G2 of Eq.(2.6) in Filippo and Pesaran(2013, P.17)

F1

Matrix F1 of Eq.(2.6) in Filippo and Pesaran(2013, P.17)

F2

Matrix F2 of Eq.(2.6) in Filippo and Pesaran(2013, P.17)

lagmatrix

Country-secific optimal lag number.

newRESID

New residuals=epsilon in Filippo and Pesaran (2013, P.17)

fitted

In-sample fitted values, or conditional mean

data

data used

Author(s)

Ho Tsung-wu <tsungwu@ntnu.edu.tw>, College of Management, National Taiwan Normal University.

References

Mauro Filippo di and Pesaran H. M. (2013) The GVAR Handbook– Structure and Applications of a Macro Model of the Global Economy for Policy. Oxford University Press.

Examples

data("PriceVol")
data("tradeweightx")
data("tradeweight1")
p=2
type="const"
ic="SC"

Result.vecm=GVECM_GF(data=PriceVol,p,type,ic, weight.matrix=tradeweight1)
Result.vecm$G0
Result.vecm$G1
Result.vecm$F1
Result.vecm$G2
Result.vecm$F2
Result.vecm$lagmatrix
Result.vecm$newRESID
Result.vecm$fitted
Result.vecm$data

GVARX documentation built on Feb. 16, 2023, 10:56 p.m.

Related to GVECM_GF in GVARX...