powered by
Computes the PCA weights for a single country
pca_weights_one_country(Yields, Economy)
matrix (J x J). Eigenvectors of the variance-covariance matrix of yields.
J x J
matrix (J x Td). Bond yields for a single country.
J x Td
character. Name of the economy.
Td: model time series dimension
Td
J: number of bond yields per country used in estimation
J
data(Yields) Economy <- "Mexico" pca_weights <- pca_weights_one_country(Yields, Economy)
Run the code above in your browser using DataLab