View source: R/Spanned_Factors.R
Spanned_Factors | R Documentation |
Computes the country-specific spanned factors
Spanned_Factors(Yields, Economies, N)
Yields |
A matrix (J x T), where J is the number of maturities and T is the length of the time series. |
Economies |
A character vector containing the names of the economies included in the system. |
N |
Scalar representing the desired number of country-specific spanned factors (maximum allowed is N = J). |
Matrix containing the N spanned factors for all the countries of the system (CJ x T)
data(CM_Yields)
Economies <- c("China", "Brazil", "Mexico", "Uruguay")
N <- 3
SpaFact_TS <- Spanned_Factors(Yields, Economies, N)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.