powered by
Computes the country-specific spanned factors
Spanned_Factors(Yields, Economies, N)
matrix. Contains the N spanned factors for all countries in the system (CJ x Td).
N
CJ x Td
matrix (J x Td). Bond yields for all countries.
J x Td
character vector. Names of the C economies included in the system.
C
integer. Desired number of country-specific spanned factors (maximum allowed is N = J).
N = J
Td: model time series dimension
Td
C: number of countries in the system
N: number of country-specific spanned factors
J: number of bond yields per country used in estimation
J
data(Yields) Economies <- c("China", "Brazil", "Mexico", "Uruguay") N <- 3 SpaFact_TS <- Spanned_Factors(Yields, Economies, N)
Run the code above in your browser using DataLab