tsdisagg


Nametsdisagg JSON
Version 1.3 PyPI version JSON
download
home_pageNone
SummaryStatistical tools for converting low frequency time series data to higher frequencies
upload_time2024-08-30 11:30:40
maintainerNone
docs_urlNone
authorNone
requires_pythonNone
licenseMIT License Copyright (c) 2022 jessegrabowski Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords time series decomposition datetime econometrics
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # tsdisagg
Tools for converting low time series data to high frequency, based on the R package `tempdisagg`, and espeically the accompanying paper by [Sax and Steiner 2013](https://journal.r-project.org/archive/2013-2/sax-steiner.pdf).

`tsdisagg` allows the user to convert low frequency time series data (e.g., yearly or quarterly) to a higher frequency (e.g., quarterly or monthly) in a way that preserves desired aggregate statistics in the high frequency data. It should, for example, sum back to the original low-frequency data.

In addition, regression-based methods are also implemented that allow the user to supply "indicator series", allowing variation from correlated high-frequency time series to be imputed into the low frequency data.

If you have any questions or issues, please open a thread. Pull requests to add features or fix bugs are welcome. Please clone the repository locally to have access to the testing suite.

## Installation
To install, use
`pip install tsdisagg`

## Current Features
Currently, only conversion between yearly, quarterly, and monthly data is supported. Conversion to lower frequencies is non-trivial due to the calendar math that needs to be added, but this is on my to-do list.

The following interpolation methods have been implemented:

Single series, non-parametric methods:
- Denton
- Denton-Cholette

Multiseries, regression-based methods:
- Chow-Lin
- Litterman


## Examples
For example usage, please see the `examples.ipynb` notebook. `tsdisagg` depends heavily on `pandas` to handle time reindexing, so the user is advised to read the associated Pandas documentation, especially as it relates to setting frequencies.


## To-do:
1. Refactor codebase to use `statsmodels` model and results objects, as well as `.fit()` api
2. Add missing interpolation methods relative to `timedisagg` (Fernandez, min RSS objective functions)
3. Add support for finer time frequencies (weekly, daily, hourly)

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "tsdisagg",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "time series, decomposition, datetime, econometrics",
    "author": null,
    "author_email": "Jesse Grabowski <jessegrabowski@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/af/3c/c96fcf5a369b776f18e4d5269ab5f0c0b45272810c957bfd5fd57f845f2d/tsdisagg-1.3.tar.gz",
    "platform": null,
    "description": "# tsdisagg\nTools for converting low time series data to high frequency, based on the R package `tempdisagg`, and espeically the accompanying paper by [Sax and Steiner 2013](https://journal.r-project.org/archive/2013-2/sax-steiner.pdf).\n\n`tsdisagg` allows the user to convert low frequency time series data (e.g., yearly or quarterly) to a higher frequency (e.g., quarterly or monthly) in a way that preserves desired aggregate statistics in the high frequency data. It should, for example, sum back to the original low-frequency data.\n\nIn addition, regression-based methods are also implemented that allow the user to supply \"indicator series\", allowing variation from correlated high-frequency time series to be imputed into the low frequency data.\n\nIf you have any questions or issues, please open a thread. Pull requests to add features or fix bugs are welcome. Please clone the repository locally to have access to the testing suite.\n\n## Installation\nTo install, use\n`pip install tsdisagg`\n\n## Current Features\nCurrently, only conversion between yearly, quarterly, and monthly data is supported. Conversion to lower frequencies is non-trivial due to the calendar math that needs to be added, but this is on my to-do list.\n\nThe following interpolation methods have been implemented:\n\nSingle series, non-parametric methods:\n- Denton\n- Denton-Cholette\n\nMultiseries, regression-based methods:\n- Chow-Lin\n- Litterman\n\n\n## Examples\nFor example usage, please see the `examples.ipynb` notebook. `tsdisagg` depends heavily on `pandas` to handle time reindexing, so the user is advised to read the associated Pandas documentation, especially as it relates to setting frequencies.\n\n\n## To-do:\n1. Refactor codebase to use `statsmodels` model and results objects, as well as `.fit()` api\n2. Add missing interpolation methods relative to `timedisagg` (Fernandez, min RSS objective functions)\n3. Add support for finer time frequencies (weekly, daily, hourly)\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) 2022 jessegrabowski  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ",
    "summary": "Statistical tools for converting low frequency time series data to higher frequencies",
    "version": "1.3",
    "project_urls": {
        "Issues": "https://github.com/jessegrabowski/tsdisagg/issues",
        "Repository": "https://github.com/jessegrabowski/tsdisagg.git"
    },
    "split_keywords": [
        "time series",
        " decomposition",
        " datetime",
        " econometrics"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "53dc604ac58f48340bb77df8c066844e99e7b1cb6898efcb01b26bb317b1e2d5",
                "md5": "1ec2080d5e150e09051dbd0bae809af7",
                "sha256": "dcb88b6aba5a49b1046ee286007646c95654873101cf3ae23a0bb40da781a638"
            },
            "downloads": -1,
            "filename": "tsdisagg-1.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "1ec2080d5e150e09051dbd0bae809af7",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 12372,
            "upload_time": "2024-08-30T11:30:39",
            "upload_time_iso_8601": "2024-08-30T11:30:39.928521Z",
            "url": "https://files.pythonhosted.org/packages/53/dc/604ac58f48340bb77df8c066844e99e7b1cb6898efcb01b26bb317b1e2d5/tsdisagg-1.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "af3cc96fcf5a369b776f18e4d5269ab5f0c0b45272810c957bfd5fd57f845f2d",
                "md5": "b1ec96f957c298fcda8341066dad9fdb",
                "sha256": "4223b7f1a488a806d9ddf9dfbc2e6eec5aa69d6bd868da83d3ff671c846965c9"
            },
            "downloads": -1,
            "filename": "tsdisagg-1.3.tar.gz",
            "has_sig": false,
            "md5_digest": "b1ec96f957c298fcda8341066dad9fdb",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 13567,
            "upload_time": "2024-08-30T11:30:40",
            "upload_time_iso_8601": "2024-08-30T11:30:40.844517Z",
            "url": "https://files.pythonhosted.org/packages/af/3c/c96fcf5a369b776f18e4d5269ab5f0c0b45272810c957bfd5fd57f845f2d/tsdisagg-1.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-08-30 11:30:40",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "jessegrabowski",
    "github_project": "tsdisagg",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "tsdisagg"
}
        
Elapsed time: 0.55384s