forecastpanel 0.1.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- forecastpanel-0.1.1/.gitignore +10 -0
- forecastpanel-0.1.1/CHANGELOG.md +33 -0
- forecastpanel-0.1.1/CITATION.cff +28 -0
- forecastpanel-0.1.1/LICENSE +21 -0
- forecastpanel-0.1.1/PKG-INFO +623 -0
- forecastpanel-0.1.1/README.md +580 -0
- forecastpanel-0.1.1/examples/house_prices_replication.py +75 -0
- forecastpanel-0.1.1/examples/monte_carlo_table1.py +39 -0
- forecastpanel-0.1.1/examples/small_panel_scenarios.py +67 -0
- forecastpanel-0.1.1/pyproject.toml +51 -0
- forecastpanel-0.1.1/pytest.ini +7 -0
- forecastpanel-0.1.1/src/forecastpanel/__init__.py +55 -0
- forecastpanel-0.1.1/src/forecastpanel/_colors.py +148 -0
- forecastpanel-0.1.1/src/forecastpanel/_core.py +639 -0
- forecastpanel-0.1.1/src/forecastpanel/_dm.py +172 -0
- forecastpanel-0.1.1/src/forecastpanel/_engine.py +217 -0
- forecastpanel-0.1.1/src/forecastpanel/_evaluation.py +301 -0
- forecastpanel-0.1.1/src/forecastpanel/_forecaster.py +409 -0
- forecastpanel-0.1.1/src/forecastpanel/_panel.py +318 -0
- forecastpanel-0.1.1/src/forecastpanel/_pca.py +57 -0
- forecastpanel-0.1.1/src/forecastpanel/_plots.py +240 -0
- forecastpanel-0.1.1/src/forecastpanel/_simulate.py +210 -0
- forecastpanel-0.1.1/src/forecastpanel/_tables.py +233 -0
- forecastpanel-0.1.1/src/forecastpanel/_version.py +1 -0
- forecastpanel-0.1.1/src/forecastpanel/datasets/SOURCES.md +16 -0
- forecastpanel-0.1.1/src/forecastpanel/datasets/__init__.py +92 -0
- forecastpanel-0.1.1/src/forecastpanel/datasets/cpi_subindices.csv.gz +0 -0
- forecastpanel-0.1.1/src/forecastpanel/datasets/house_prices.csv.gz +0 -0
- forecastpanel-0.1.1/src/forecastpanel/datasets/house_weights.csv.gz +0 -0
- forecastpanel-0.1.1/src/forecastpanel/datasets/macro_predictors.csv.gz +0 -0
- forecastpanel-0.1.1/tests/conftest.py +33 -0
- forecastpanel-0.1.1/tests/fixtures/xc_a_dims.txt +1 -0
- forecastpanel-0.1.1/tests/fixtures/xc_a_matlab_forecasts.csv +40 -0
- forecastpanel-0.1.1/tests/fixtures/xc_a_y.csv +840 -0
- forecastpanel-0.1.1/tests/fixtures/xc_a_z.csv +840 -0
- forecastpanel-0.1.1/tests/fixtures/xc_a_zf.csv +40 -0
- forecastpanel-0.1.1/tests/fixtures/xc_b_dims.txt +1 -0
- forecastpanel-0.1.1/tests/fixtures/xc_b_matlab_forecasts.csv +25 -0
- forecastpanel-0.1.1/tests/fixtures/xc_b_y.csv +750 -0
- forecastpanel-0.1.1/tests/fixtures/xc_b_z.csv +750 -0
- forecastpanel-0.1.1/tests/fixtures/xc_b_zf.csv +25 -0
- forecastpanel-0.1.1/tests/fixtures/xc_c_dims.txt +1 -0
- forecastpanel-0.1.1/tests/fixtures/xc_c_matlab_forecasts.csv +60 -0
- forecastpanel-0.1.1/tests/fixtures/xc_c_y.csv +720 -0
- forecastpanel-0.1.1/tests/fixtures/xc_c_z.csv +720 -0
- forecastpanel-0.1.1/tests/fixtures/xc_c_zf.csv +60 -0
- forecastpanel-0.1.1/tests/test_api.py +125 -0
- forecastpanel-0.1.1/tests/test_core.py +129 -0
- forecastpanel-0.1.1/tests/test_dm.py +40 -0
- forecastpanel-0.1.1/tests/test_reference.py +77 -0
- forecastpanel-0.1.1/tests/test_simulate.py +44 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## [0.1.1] - 2026-10-30
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
- `ForecastResults.summary()` no longer requires the optional `jinja2` package: the
|
|
7
|
+
coefficient table is rendered in LaTeX by the package's own booktabs builder.
|
|
8
|
+
|
|
9
|
+
### Changed
|
|
10
|
+
- Minimum Python version is 3.10 (tested on 3.10-3.13, Linux and Windows).
|
|
11
|
+
|
|
12
|
+
## [0.1.0] - 2026-10-30
|
|
13
|
+
|
|
14
|
+
### Added
|
|
15
|
+
- Individual, pooled, fixed-effects, random-effects (Goldberger BLUP) and empirical Bayes
|
|
16
|
+
panel forecasts, and the combination forecasts of Pesaran, Pick and Timmermann (2026):
|
|
17
|
+
common individual/pooled weight (eq. 32), individual/FE weight (eq. 39), unit-specific
|
|
18
|
+
weights (eq. 36/46) and equal weights.
|
|
19
|
+
- Extensions: bias-adjusted unit weights, mean group, iterative Bayes and Stein-rule shrinkage
|
|
20
|
+
(Maddala et al., 1997), Mallows pooling averaging (Wang, Zhang and Paap, 2019), RE BLUP with
|
|
21
|
+
AR(1) errors (Baltagi and Li, 1992), hierarchical Bayes (Gibbs sampler), ridge/diagonal
|
|
22
|
+
regularisation of Omega for small N.
|
|
23
|
+
- `PanelData` with automatic lags, contemporaneous scenario variables and trends; iterated
|
|
24
|
+
multi-step forecasts, scenario paths, additive offsets and bootstrap predictive intervals.
|
|
25
|
+
- Rolling/expanding pseudo out-of-sample evaluation reproducing Table 2, Table 3 and Figure 1;
|
|
26
|
+
panel Diebold-Mariano test (Pesaran, Pick and Pranovich, 2013) and unit DM/HLN tests.
|
|
27
|
+
- Monte Carlo design of Section 5.1, pooled R-squared (Table S.1), oracle weights (Table S.4).
|
|
28
|
+
- House-price and CPI datasets of the paper's applications.
|
|
29
|
+
- Journal-style text/LaTeX tables and figures with the MATLAB Parula colour map.
|
|
30
|
+
|
|
31
|
+
### Verified
|
|
32
|
+
- Forecasts agree with the authors' MATLAB replication code to 1e-10 and the published Tables 2
|
|
33
|
+
and 3 (house prices) are reproduced exactly.
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
cff-version: 1.2.0
|
|
2
|
+
title: "forecastpanel: Forecasting with panel data in Python"
|
|
3
|
+
message: "If you use this software, please cite it and the original paper."
|
|
4
|
+
authors:
|
|
5
|
+
- family-names: Roudane
|
|
6
|
+
given-names: Merwan
|
|
7
|
+
email: merwanroudane920@gmail.com
|
|
8
|
+
version: 0.1.1
|
|
9
|
+
date-released: "2026-10-30"
|
|
10
|
+
url: "https://github.com/merwanroudane/forecastpanel"
|
|
11
|
+
license: MIT
|
|
12
|
+
references:
|
|
13
|
+
- type: article
|
|
14
|
+
authors:
|
|
15
|
+
- family-names: Pesaran
|
|
16
|
+
given-names: M. Hashem
|
|
17
|
+
- family-names: Pick
|
|
18
|
+
given-names: Andreas
|
|
19
|
+
- family-names: Timmermann
|
|
20
|
+
given-names: Allan
|
|
21
|
+
title: "Forecasting with panel data: Estimation uncertainty versus parameter heterogeneity"
|
|
22
|
+
journal: "Quantitative Economics"
|
|
23
|
+
volume: 17
|
|
24
|
+
issue: 2
|
|
25
|
+
start: 342
|
|
26
|
+
end: 393
|
|
27
|
+
year: 2026
|
|
28
|
+
doi: "10.3982/QE2589"
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Merwan Roudane
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|