IDEAS home Printed from https://ideas.repec.org/p/tin/wpaper/20240060.html
   My bibliography  Save this paper

PyTimeVar: A Python Package for Trending Time-Varying Time Series Models

Author

Listed:
  • Mingxuan Song

    (Vrije Universiteit Amsterdam)

  • Bernhard van der Sluis

    (Erasmus University Rotterdam)

  • Yicong Lin

    (Vrije Universiteit Amsterdam and Tinbergen Institute)

Abstract

Time-varying regression models with trends are commonly used to analyze long-term tendencies and evolving relationships in data. However, statistical inference for parameter paths is challenging, and recent literature has proposed various bootstrap methods to address this issue. Despite this, no software package in any language has yet offered the recently developed tools for conducting inference in time-varying regression models. We propose PyTimeVar, a Python package that implements nonparametric estimation along with multiple new bootstrap-assisted inference methods. It provides a range of bootstrap techniques for constructing pointwise confidence intervals and simultaneous bands for parameter curves. Additionally, the package includes four widely used methods for modeling trends and time-varying relationships. This allows users to compare different approaches within a unified environment.

Suggested Citation

  • Mingxuan Song & Bernhard van der Sluis & Yicong Lin, 2024. "PyTimeVar: A Python Package for Trending Time-Varying Time Series Models," Tinbergen Institute Discussion Papers 24-060/III, Tinbergen Institute.
  • Handle: RePEc:tin:wpaper:20240060
    as

    Download full text from publisher

    File URL: https://papers.tinbergen.nl/24060.pdf
    Download Restriction: no
    ---><---

    More about this item

    Keywords

    time-varying; bootstrap; nonparametric estimation; boosted Hodrick-Prescott filter; power-law trend; score-driven; state-space;
    All these keywords.

    JEL classification:

    • C14 - Mathematical and Quantitative Methods - - Econometric and Statistical Methods and Methodology: General - - - Semiparametric and Nonparametric Methods: General
    • C22 - Mathematical and Quantitative Methods - - Single Equation Models; Single Variables - - - Time-Series Models; Dynamic Quantile Regressions; Dynamic Treatment Effect Models; Diffusion Processes
    • C87 - Mathematical and Quantitative Methods - - Data Collection and Data Estimation Methodology; Computer Programs - - - Econometric Software

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:tin:wpaper:20240060. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Tinbergen Office +31 (0)10-4088900 (email available below). General contact details of provider: https://edirc.repec.org/data/tinbenl.html .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.