Showing posts with label Econometrics. Show all posts
Showing posts with label Econometrics. Show all posts

R code for Arbitrage-Free Nelson-Siegel-Svensson (AFNSS) model

This post provides an R code for the 4-factor Arbitrage-Free Nelson-Siegel-Svensson (AFNSS) model developed by Lee (2024).

R: The Hodrick-Prescott filter or HP filter

This post demonstrates how to apply the Hodrick-Prescott (HP) filter in R by using the hpfilter R library.

R: Beveridge–Nelson Trend and Cycle Decomposition

This post shows how to extract trend and cyclical components from a univariate time series based on the Beveridge–Nelson (BN) decomposition using tsm R package.

R : Nyholm (2018) Rotated Nelson-Siegel Model

This post implements R code to estimate the Rotated Nelson-Siegel yield curve model of Nyholm (2018)

R : Nelson-Siegel-Svensson (NSS) model with fixed or estimated constant decay parameters

This post implements the period-by-period estimation of the Nelson-Siegel-Svensson yield curve model with fixed or estimated constant decay parameters using R code.

R : VAR Impulse Response Function

This post draws the orthogonal impulse response functions from an estimated VAR model with 1 standard deviation or 1 unit shock. vars R package does not provide 1 unit shock so I implemented it using the Cholesky decomposition.

Python: The Hodrick-Prescott filter or HP filter

This post shows how to extract trend and cyclical components from a univariate time series using the Hodrick-Prescott (HP) filter. A more realistic version is the one-sided HP filter since it uses only the information available at time t, not the full sample.

R code: Understanding Dynamic Conditional Correlation (DCC) model

This post explains the structure of DCC (dynamic conditional correlation) model of Engle (2002) and then, uses rmgarch R package for estimating DCC model. This R package also provides various extended versions of DCC model.

R code: Estimation and Forecasting of GARCH Volatility model

This post uses rugarch R package for estimating GARCH model to obtain conditional volatility estimates. This R package also provides various extended versions of GARCH model such as EGARCH, GJR-GARCH, to name a few.

Tentative Topics (Keeping Track to Avoid Forgetting)

Segmented Nelson-Siegel model
Shifting Endpoints Nelson-Siegel model
Nadaraya-Watson estimator
Locally weighted scatterplot smoothing (LOWESS)
Time-Varying Parameter Vector Autoregressions (TVP-VAR)
Time-varying or Dynamic Copula
Bayesian VAR
Adrian-Crump-Moench (ACM) term premium model
GARCH-EVT-Copula approach