Skip to contents

Dataset

Datasets included in the package

MultiATSM_datasets
Overview of Datasets Included in the MultiATSM Package
GlobalMacro
Data: Risk Factors - Candelon and Moura (2024, JFEC)
GlobalMacro_covid
Data: Risk Factors - Candelon and Moura (2023, EM)
DomMacro
Data: domestic risk factors - Candelon and Moura (2024, JFEC)
DomMacro_covid
Data: Risk Factors for the GVAR - Candelon and Moura (2023)
TradeFlows
Data: Trade Flows - Candelon and Moura (2024, JFEC)
TradeFlows_covid
Data: Trade Flows - Candelon and Moura (2023, EM)
Yields
Data: bond yield data - Candelon and Moura (2024, JFEC)
Yields_covid
Data: Yields - Candelon and Moura (2023)
RiskFacFull
Data: Full set of risk factors - Candelon and Moura (2024, JFEC)
GVARFactors
Data: Risk Factors for the GVAR - Candelon and Moura (2024, JFEC)

Data handling

Functions for handling and transforming data

DataForEstimation()
Retrieves data from Excel and builds the database used in the model estimation
DatabasePrep()
Gather data of several countries in a list. Particularly useful for GVAR-based setups (Compute "GVARFactors")
LoadData()
Loads data sets from several papers
Load_Excel_Data()
Read data from Excel files and return a named list of data frames
InputsForOutputs()
Collects the inputs that are used to construct the numerical and graphical outputs
LabFac()
Generates the labels for risk factors used in the model

Estimation of model P-dynamics

Functions for estimating the parameters from the P-dynamics

Bias_Correc_VAR()
Estimates an unbiased VAR(1) using stochastic approximation (Bauer, Rudebusch and Wu, 2012)
GVAR()
Estimates a GVAR(1) and VARX(1,1,1) models
JLL()
Estimates the P-dynamics from JLL-based models
Transition_Matrix()
Computes the transition matrix required in the estimation of the GVAR model
VAR()
Estimates a standard VAR(1)

Methods

Available methods for several object classes

autoplot()
Autoplot generic function
autoplot(<ATSMModelBoot>)
Autoplot method for ATSMModelBoot objects
autoplot(<ATSMNumOutputs>)
Autoplot method for ATSMNumOutputs objects
plot(<ATSMModelForecast>)
Plot method for ATSMModelForecast objects
print(<ATSMModelInputs>)
Print method for ATSMModelInputs objects
summary(<ATSMModelInputs>)
Summary method for ATSMModelInputs objects
summary(<ATSMModelOutputs>)
Summary method for ATSMModelOutputs objects

Graphs

Functions to generate graphical outputs

FEVDandGFEVDgraphs()
FEVD and GFEVD graphs for all models
Fitgraphs()
Model fit graphs for all models
IRFandGIRFgraphs()
IRF and GIRF graphs for all models
RiskFactorsGraphs()
Spanned and unspanned factors plot
TPDecompGraph()
Term Premia decomposition graphs for all models

Functions related to the computation of spanned factors

Spanned_Factors()
Computes the country-specific spanned factors
pca_weights_one_country()
Computes the PCA weights for a single country

Model optimization, numerical outputs, bootstrap and forecasting

Bootstrap()
Generates the bootstrap-related outputs
ForecastYields()
Generates forecasts of bond yields for all model types
InputsForOpt()
Generates inputs necessary to build the likelihood function for the ATSM model
Optimization()
Perform the optimization of the log-likelihood function of the chosen ATSM
NumOutputs()
Constructs the model numerical outputs (model fit, IRFs, GIRFs, FEVDs, GFEVDs, and term premia)

Pre-loaded outputs

Pre computed outputs

BR_jps_out
Replications of the JPS (2014) outputs by Bauer and Rudebusch (2017)
InpForOutEx
Example of list inputs used in the construction of several model outputs
ParaSetEx
Example of parameter set after optimization
NumOutEx
Example of computed numerical outputs
Out_Example
Complete list of several outputs from an ATSM
MultiATSM MultiATSM-package
ATSM Package