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:
|
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)