Skip to main content

Panel regression simultaneously solving for ARIMA/GARCH and random/fixed effects.

Project description

Paneltime is a statistical tool for estimating regressions on datasets that:

  • Are panels (have both a time and a group dimension)
  • Are non-stationary in means (ARIMA)
  • Are non-stationary in variance (GARCH)

Unlike any other statistical tool currently available, Paneltime simultaneously handles common timeseries problems (ARIMA/GARCH) and panel data sets consisting of several groups/individuals (random/fixed effects).

The package can also be used on pure panel data sets without ARIMA/GARCH or single time series data with ARIMA/GARCH problems.

Author: Espen Sirnes
Current version: 1.2.68

Installation

"pip install paneltime" for installation

Usage

Datasets are estimated with

paneltime.execute(model_string, dataframe, T,
						ID=None, HF=None,
						instruments=None)

It takes the following arguments:

  • model_string: A string on the form 'Y ~ X1 + X2 + X3', where Y is the dependent and X1-X3 are the independents, as named in the dataframe (required)
  • dataframe: a dataframe consisting of variables with the names used in model_string (required)
  • T: the time identifier (required)
  • ID: The group identifier (optional)
  • HF: list with names of heteroskedasticity factors (optional)
  • instruments: list with names of instruments (optional)

The model string

The model string can contain operations supported by the numpy package, using np as alias for numpy. For example np.abs(x) will result in a variable that is the absolute value of x.

Example using world bank data

{{< include example.py >}}

Download working example zip

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

paneltime-1.2.69.tar.gz (8.2 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

paneltime-1.2.69-py3-none-any.whl (8.3 MB view details)

Uploaded Python 3

File details

Details for the file paneltime-1.2.69.tar.gz.

File metadata

  • Download URL: paneltime-1.2.69.tar.gz
  • Upload date:
  • Size: 8.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for paneltime-1.2.69.tar.gz
Algorithm Hash digest
SHA256 79f00157da647fd2836d9811aaea9d76920c3dbcbbdd1e161608a27183ad4aaa
MD5 e60fa5d4fe1819920747f0cf4a1be14c
BLAKE2b-256 ddec19b81835c32b204e3da47b1416cf55ca3b96b86e8c40878b086636121904

See more details on using hashes here.

File details

Details for the file paneltime-1.2.69-py3-none-any.whl.

File metadata

  • Download URL: paneltime-1.2.69-py3-none-any.whl
  • Upload date:
  • Size: 8.3 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for paneltime-1.2.69-py3-none-any.whl
Algorithm Hash digest
SHA256 7c79aca65efe858cf7ac480ff6b2759d0a615c241440c6be216459d534837737
MD5 07a5396630a395e72886afec991a6766
BLAKE2b-256 193ad99a3c16ca0a6464906d7e1382006def9b28e825e3cde4cd1c816069b1e2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page