Giter VIP home page Giter VIP logo

multistep's Introduction

Replication Material

This repository hosts the data and R codes for the paper "A Comparison of Multistep Commodity Price Forecasts Using Direct and Iterated Smooth Transition Autoregressive Methods."

The codes should run with no issue and replicate the results of the study as long as all the supplied material (i.e., the data file as well as the R codes) are stored in the same folder.

Data

  • dataset.RData file contains the price series that were accessed on 27 November 2021 from online portals of the World Bank and the International Monetary Fund. Specifically:
  • Note: The IMF Primary Commodity Price System online portal has been undergoing some maintenance, so the price series don't appear to be available. Hopefully the issue will get resolved soon.

R Codes

Main

  • 01-subset.r -- subsets the commodity price series that exhibit evidence of one-step STAR-type nonlinear dynamics, based on Terasvirta's linearity test, in each expanding window.
  • 02-forecast.r -- for the selected commodity price series, runs the expanding window routine to generate one--to--twelve--step--ahead point forecasts for direct and iterated STAR methods and their linear counterparts. The lag order and the STAR function is selected in each expanding window and, in the case of direct STAR, for every horizon.
  • 03-evaluate.r -- compares forecasts using root mean square forecast errors and the Diebold--Mariano type test statistics.
  • 04-tables.r -- generates Table 1 and Appendix Table 1
  • 05-figures.r -- generates Figure 1 and Figure 3

Auxillary

These codes store functions that facilitate testing and estimating of STAR models

  • startest.r
  • lstar.r
  • estar.r

License

License: MIT

multistep's People

Contributors

dubilava avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

allisterh

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.