Transition_Matrix {MultiATSM}R Documentation

Compute the transition matrix required in the estimation of the GVAR model

Description

Compute the transition matrix required in the estimation of the GVAR model

Usage

Transition_Matrix(
  t_First,
  t_Last,
  Economies,
  type,
  DataPath = NULL,
  Data = NULL
)

Arguments

t_First

Sample starting date (year)

t_Last

Sample last date (year)

Economies

Vector containing the names of all the economies of the system.

type

Three possibilities:

  • "Full Sample": if one wishes ALL weight matrices of each year from which data is available (it may extrapolate the sample period);

  • "Sample Mean": if one wishes a SINGLE weight matrix containing the average of weights over of the entire sample period;

  • Some year in particular (e.g. "1998", "2005" ...).

DataPath

path of the Excel file containing the data (if any). The default is linked to the Excel file available in the package.

Data

Data for computing the transition matrix. Default is set to NULL.

Details

NOTE: if there is missing data for any country of the system for that particularly year, then the transition matrix will include only NAs.

Value

matrix or list of matrices

Examples

data(CM_Trade)

t_First <- "2006"
t_Last <-  "2019"
Economies <- c("China", "Brazil", "Mexico", "Uruguay")
type <- "Sample Mean"
Transition_Matrix(t_First, t_Last, Economies, type, DataPath = NULL, Data = TradeFlows)



[Package MultiATSM version 0.3.6 Index]