Features¶
What pymetrix does, area by area, and what is only planned. For the checks behind the numbers see validation.md; for what is missing, known-gaps.md, whose sections follow the same areas.
Status (version 0.1.0a22 and Unreleased)¶
Each feature carries a proposed maturity tier (for the project lead's approval):
- stable: its numbers are checked against an independent implementation (the wrapped library, another package's recorded output or a published table), and it is on the main, well-used path (data, single equations, standard tests, VARs and VECMs, forecasting rounds, projects and replay, reports);
- beta: validated in tests but with little real use so far, or checked only by hand formulas, simulation or published moments rather than another package's output;
- experimental: working but thinly checked, likely to change, or with notable known gaps.
Planned work not begun is marked not started.
What each feature is checked against is in validation.md; what is missing or rough, in known-gaps.md. Help pages show the same tier under their summary.
Each row names the feature, its API (or the menu path of its dialog) and its tier; the last column points to the detail: an in-app help topic (Help → Help contents, or F1; shown here as Title) or a section of the user guide. The CHANGELOG lists what changed in each release.
Areas: Data and connectors · Single equations · Microeconometrics · Time series and macro · Nowcasting · Forecasting and evaluation · Inference and model selection · Bootstrap and simulation · Machine learning · Models: solution and estimation · Finance (plugin) · Reports and figures · App and dialogs · Programs, plugins and translators
Data and connectors¶
| Feature | API / dialog | Maturity | Detail |
|---|---|---|---|
| Datasets: axes, metadata, lags within entity, selection, frequency conversion, aggregation, pivots | Dataset, select, to_freq, aggregate, pivot; Data → Transform → Convert frequency, Data → Panel → Aggregate over entities |
stable | Changing frequency and aggregating |
| Parquet (with metadata), CSV, Excel | Dataset.read, File → Load data… |
stable | guide |
A time axis from a first period, for data with no dates (R's ts) |
Dataset.from_frame(df, start=, freq=), Dataset.read(..., start=, freq=) |
beta | guide |
Empty datasets and assignment within a sample (EViews' wfcreate, smpl) |
Dataset.empty, with_series(..., within=Sample(...)); File → New dataset… |
beta | Samples |
| Expression language: parser, evaluation, symbolic derivatives | formulas, derive, with_series |
stable | Derived series |
Expression functions: rounding, log10, missing values, iif, the rows' calendar, seeded draws |
round, na, isna, fillna, iif, year(), normrnd... |
beta | Derived series |
| Conditions in formulas, giving 1/0 (missing where an input is) | <, ==, and, or, not |
beta | Derived series |
| Distribution functions (MATLAB/Dynare names, exact derivatives) and moving-window statistics | normcdf, poissinv, movavg, cmovavg, cumavg... |
beta | Distribution functions and moments |
| Seasonal dummies in formulas | seasonal(), C(quarter), C(month) |
beta | Least squares |
The reference level of a categorical term (R's relevel, patsy's Treatment(reference=)) |
C(g, base="b") |
beta | guide |
| Generate series for each, from name and formula templates | Dataset.with_each; Data → Generate series… (For each) |
beta | Generate series for each |
| Moments: descriptive statistics, correlations, co-skewness and co-kurtosis | describe, corr, partial_corr, coskewness; Data → Statistics → Descriptive statistics… |
beta | guide |
| Example cross sections and panels (Mroz, Card, Grunfeld, ...) and simulated panels with known effects | Dataset.example(...) |
stable | guide |
| Data connectors: FRED (and ALFRED vintages), World Bank, SDMX (ECB, Eurostat, OECD, IMF, BIS, your own) | Dataset.read("fred://..."), register_sdmx_provider; File → Load from connector… |
beta | Data connectors |
| Series browser for FRED, the World Bank and SDMX providers | pymetrix.connectors.search, browse, structure; File → Browse series… |
beta | guide |
| Large Parquet data: footers scanned, columns and rows read with conditions pushed down | pymetrix.io.scan, Dataset.read(path, columns=, where=, span=) |
beta | Large Parquet data |
| Release calendars, ALFRED vintages and revision analysis | ReleaseCalendar, read_vintages, revision_analysis; Estimate → Mixed frequency → Vintages from ALFRED… |
beta | Real-time data: masks, release calendars and vintages |
| FRED-MD transformation codes | apply_tcodes, read_tcodes; Data → Transform → Apply transformation codes… |
beta | Real-time data: masks, release calendars and vintages |
| Matrices with names: products that check names, decompositions, matrix equations | Matrix, design, from_dataset; Model > Matrix |
beta | guide |
Single equations¶
| Feature | API / dialog | Maturity | Detail |
|---|---|---|---|
Least squares: linear form, fe(), C(), NLS for explicit form, weights |
Equation.fit(method=OLS()); Estimate → Equation… |
stable | Least squares |
| Regression without a formula (arrays, frames), the same result | pymetrix.ols(y, X, ...) |
beta | Regression without a formula |
| Covariances: classic, White, HAC, one- and two-way cluster | OLS(cov=...) |
stable | Least squares |
HC0, HC2, HC3 (also with absorbed fe()), HC4 and HC5 |
cov="hc3", "hc4", "hc5" |
beta | Least squares |
| Instrumental variables: 2SLS (nonlinear for explicit form), first-stage F, Sargan, Durbin-Wu-Hausman | IV |
beta | Instrumental variables |
LIML, Fuller, k-class, IV-GMM with Hansen's J (linearmodels, [panel]) |
LIML, IVGMM |
stable | Instrumental variables |
| GMM with your own moments, flavours (CUE, C test), weak-instrument tests, minimum distance | MomentGMM, steps="cue"; Test → Weak-instrument tests… |
experimental | guide |
| GMM for linear or explicit equations (Euler equations): one-, two-step, iterated; Hansen's J | GMM |
beta | guide |
| Maximum likelihood: logit, probit, Poisson, with linear or nonlinear indexes | ML, Logit, Probit, Poisson |
stable | Maximum likelihood |
| Complementary log-log links for 0/1 and ordered outcomes | CLogLog, OrderedCLogLog; Estimate → Equation… |
beta | Maximum likelihood |
| ARMA errors by exact ML; GARCH and GJR-GARCH with normal, t, skewed-t or GED errors; both together | errors=ARMA(...), variance=GARCH(...) |
stable | Volatility models (GARCH) |
EGARCH, TARCH, FIGARCH, APARCH (arch, [arch]) |
EGARCH, TARCH, FIGARCH, APARCH |
stable | Volatility models (GARCH) |
| Quantile regression and the quantile process | method=Quantile(q=...), quantile_process; Estimate → Quantile process… |
stable | Quantile regression |
| Robust regression by M-estimation (Huber, bisquare) | method=RobustLS(...) |
beta | Robust regression |
| Restricted least squares, with the test of the restrictions | OLS(restrictions=[...]), IV(restrictions=...) |
beta | guide |
| AR(1) errors, multiplicative heteroskedasticity, stochastic frontiers | Cochrane-Orcutt, Prais-Winsten, frontier | beta | guide |
| Rolling and recursive estimation, recursive residuals, CUSUM | fit_rolling, fit_recursive |
stable | Specification and diagnostic tests |
| Bayesian single equations: Gaussian, logit, probit, Poisson; Gibbs, Metropolis or NUTS | method=Bayes(prior={...}) |
beta | Bayesian estimation of an equation |
| Bayesian regressions with ARMA(p, q) errors and ARMA models, with density forecasts | errors=ARMA(p, q) with method=Bayes(...) |
beta | guide |
| Nonparametric: kernel densities and regression, partially linear model, semiparametric GARCH | kernel regression, Robinson's estimator | beta | Nonparametric estimation |
| Systems: SUR, 3SLS, system OLS and 2SLS, cross-equation restrictions | System |
beta | Systems of equations: SUR and 3SLS |
Microeconometrics¶
| Feature | API / dialog | Maturity | Detail |
|---|---|---|---|
Panel estimators (linearmodels, [panel]): random effects, between, first differences, Fama-MacBeth, Hausman |
RandomEffects, compare(fe, re, test="hausman") |
stable | Panel data estimators |
| Dynamic panel GMM: Arellano-Bond and Blundell-Bond | method=ArellanoBond(...) |
experimental | Dynamic panels: Arellano-Bond and system GMM |
| Interactive fixed effects (Bai 2009) | interactive_fe |
experimental | Interactive fixed effects |
| Limited dependent variables: negative binomial, ZIP, ordered, multinomial, Tobit, Heckman | ML families |
stable | Maximum likelihood |
Margins, as Stata's margins: effects and predictions at chosen values, contrasts, through every term |
marginal_effects, predictive_margins; Estimate → Margins… |
beta | Marginal effects and margins |
| Treatment effects: DiD and event studies, RD, IPW and AIPW, synthetic control | did, rdd, synthetic_control |
beta | Treatment effects and policy evaluation |
| Staggered DiD: Callaway-Sant'Anna, Sun-Abraham, Goodman-Bacon | staggered_did(method="callaway_santanna" \| "sun_abraham") |
beta | Staggered difference-in-differences |
| Synthetic difference-in-differences; diffusions by exact ML | synthetic_did |
beta | Synthetic difference-in-differences |
| Double/debiased ML: PLR, PLIV, IRM, two-way clusters, sensitivity to omitted confounding | double_ml, dml_sensitivity; Estimate → Microeconometrics |
beta | Double/debiased machine learning |
| Causal forests (Wager and Athey 2018) | causal_forest; Estimate → Microeconometrics → Causal forest… |
experimental | Causal forests |
| Shift-share (Bartik) IV with AKM and shock-level errors | shift_share |
beta | Shift-share (Bartik) instruments |
| Conditional logit: Chamberlain's panel logit and McFadden's choice model, with effects | conditional_logit, choice_logit, clogit_effects |
beta | Conditional logit |
| Choice margins at profiles and the Hausman–McFadden IIA test | choice_margins, hausman_mcfadden; Estimate → Microeconometrics → Choice model margins… |
beta | Conditional logit |
| Nested logit (RU2 form), with margins and predictions | nested_logit; Estimate → Microeconometrics → Nested logit… |
beta | Nested and mixed logit |
| Mixed logit: normal and lognormal, correlated coefficients, panels; Halton, Sobol or pseudo-random draws | mixed_logit; Estimate → Microeconometrics → Mixed logit… |
beta | Nested and mixed logit |
| Survival: Kaplan-Meier with tests, Cox models with strata and left truncation | kaplan_meier, cox_ph; Estimate → Microeconometrics → Kaplan-Meier survival… |
beta | Survival analysis |
| Survival: Cox curves at profiles, time-varying covariates, Nelson-Aalen, parametric models, competing risks | cox_survival_curves, duration_model, cumulative_incidence; Estimate → Microeconometrics → Parametric survival (duration model)… |
beta | Survival analysis |
| Panel unit-root and cointegration tests (LLC, IPS, CIPS, Breitung, Hadri, Pedroni, Kao, Westerlund) | panel tests | beta | Unit roots and stationarity |
| Panel data tools: within-entity operations, balancing | Dataset panel methods |
beta | Working with panel data |
Time series and macro¶
| Feature | API / dialog | Maturity | Detail |
|---|---|---|---|
| Correlograms, ARMA order selection, an equation's lag search | correlogram, select_lags |
stable | guide |
| Seasonal ARIMA (SARIMAX), the theta method, STL forecasting | SARIMA, Theta, STLForecast |
stable | guide |
| Interventions and transfer functions | pulse, step, ramp, SARIMA(interventions=), TransferFunction; Estimate → Time series → Transfer function (intervention model)… |
experimental | Interventions and transfer functions |
| ARDL models and the bounds test | ARDL; Estimate → Time series → ARDL and bounds test |
beta | ARDL models and the bounds test |
| Markov-switching regressions | MarkovSwitching; Estimate → Nonlinear → Markov switching |
beta | Markov-switching models |
| Smooth-transition autoregressions (LSTAR, ESTAR) | SmoothTransitionAR |
beta | Smooth-transition autoregressions |
| Threshold VARs, bilinear models, VARMA | Estimate → Nonlinear → Threshold VAR…, Estimate → VARs and local projections → VARMA… | beta | guide |
| Generalised impulse responses of nonlinear models (Koop, Pesaran and Potter) | girf; Estimate → VARs and local projections → Generalised impulse responses… |
beta | Generalised impulse responses of nonlinear models |
| Counts and durations over time: INAR(1), Poisson autoregression, ACD, ACH; GARCH-in-mean | count and duration models | beta | Counts and durations over time |
| Spectra and long memory (GPH, local Whittle, ARFIMA) | Test → Spectrum…, Estimate → Time series → Long memory… | beta | Spectra and long memory |
| Unit-root tests: ADF, KPSS, Phillips-Perron, DF-GLS, Zivot-Andrews, variance ratio; Engle-Granger and Johansen | data.test("adf", ...), data.test("kpss", ...) |
stable | Unit roots and stationarity |
| More unit-root tests: Ng-Perron, ERS, Perron's known break | data.test("ng_perron" \| "ers_point_optimal" \| "perron_break", ...) |
beta | guide |
| Small-sample critical values for ADF and Engle-Granger | critical_values="simulated" |
beta | guide |
| Cointegrating regressions (FMOLS, CCR, DOLS), Gregory-Hansen; mean group, CCE, pooled mean group | Test → Gregory-Hansen cointegration test…; Estimate → VARs and local projections → Panel mean group and CCE… | beta | guide |
| VARs: lag selection, identification, IRFs, FEVD, historical decompositions, Granger, restrictions | VAR; Estimate → VARs and local projections → VAR… |
stable | Vector autoregressions |
| SVARs by A-B restrictions, short and long run; FIML; tests on cointegrating vectors | AB; Test → VECM restrictions and stability… |
beta | Structural VARs by A-B restrictions |
| More identification: max share, news, narrative and zero-sign restrictions, heteroskedasticity | MaxShare, News, HeteroskedasticitySVAR |
beta | guide |
| VECMs and Johansen cointegration | VECM |
stable | Cointegration and VECMs |
| Bayesian VARs: Minnesota, GLP, independent normal-Wishart; Monte Carlo standard errors | bvar, Minnesota, GLP, NormalWishart |
beta | Bayesian VARs |
| BVARs with stochastic volatility, FAVARs, Markov-switching VARs | BVARSV, favar, MSVAR |
experimental | BVARs with stochastic volatility, FAVARs and Markov-switching VARs |
| TVP-VARs with stochastic volatility (Primiceri) | TVPVAR |
experimental | TVP-VARs with stochastic volatility |
| Quantile VARs and connectedness; spatial lag and error models | Estimate → VARs and local projections → Quantile VAR… | beta | guide |
| Proxy SVARs (external instruments) | var.proxy_svar |
beta | Proxy SVARs |
| Panel VARs (GMM on forward orthogonal deviations) | VAR(..., by=entity) |
beta | Panel VARs |
| Local projections, smooth local projections, LP-IV | LocalProjection, fit_smooth, instruments= |
beta | Local projections |
| Growth at risk: quantile local projections with skewed-t densities | growth_at_risk |
beta | Growth at risk |
| State space written as equations; unobserved components | StateSpace |
beta | State space and the Kalman filter |
| Filters: HP (and one-sided), Baxter-King, Christiano-Fitzgerald, Hamilton | ds.filter(...) |
stable | Trend-cycle filters |
| Seasonal adjustment: STL, classical, X-13ARIMA-SEATS and TRAMO-SEATS (plugin), calendar regressors | ds.seasonal_adjust(...) |
beta | Seasonal adjustment and calendar effects |
| Temporal disaggregation: Chow-Lin, Fernández, Litterman, Denton-Cholette | TemporalDisaggregation |
beta | Temporal disaggregation |
| Two-way reconciliation of components to totals | reconcile |
beta | Temporal disaggregation |
| Index numbers: rebasing, splicing, deflating; Laspeyres, Paasche, Fisher and Törnqvist indices; chain-linked volumes (annual overlap, one-quarter overlap, over the year) and contributions to growth | rebase, splice, deflate, price_index, chain_link, contributions_to_growth; Data → Transform → Index numbers… |
beta | Index numbers |
| Principal components and factor analysis (R factanal's algorithm) | FactorModel; Estimate → Factors |
beta | Principal components and factor analysis |
| Where a value stands in its window: rolling and expanding z-scores, robust z-scores, percentile ranks, quantiles | movzscore, movrzscore, movpctrank, movquantile, expzscore... |
beta | Distribution functions and moments |
| Surveillance heatmaps: normalised indicators by date, flips, groups and composites, clustered rows, mixed frequencies, latest snapshot, regime bands | surveillance_heatmap, SurveillanceSpec; Data → Statistics → Surveillance heatmap… |
beta | Surveillance heatmaps |
| K-means cluster analysis of dates (regimes) or series, silhouettes, the number of clusters | kmeans, kmeans_k; Estimate → Clusters |
beta | K-means cluster analysis |
Nowcasting¶
| Feature | API / dialog | Maturity | Detail |
|---|---|---|---|
| Publication lags, the ragged edge, data as known on a day, AR filling and realignment | as_of, ragged_edge; Estimate → Mixed frequency |
beta | Nowcasting and the ragged edge |
| Bridge equations, combination of nowcasts | Bridge |
beta | Nowcasting and the ragged edge |
| MIDAS regressions (Almon, Beta, U-MIDAS), with nowcasts and bands | MIDAS, nowcast_density |
beta | MIDAS: mixed-frequency regression |
| Mixed-frequency dynamic factor model: blocks, the full sample, news, nowcast bands | DynamicFactor, nowcast_density |
beta | Nowcasting and the ragged edge |
| Masks and an outlier rule (factor model; masks for bridges and MIDAS) | mask=, outliers= |
beta | Real-time data: masks, release calendars and vintages |
| Backtests by release day, real-time on vintages, scored against a chosen release | nowcast_backtest; Estimate → Mixed frequency → Nowcast backtest by release day… |
beta | Nowcast backtests and tracking |
| Tracking a nowcast with chained news, revisions and re-estimation | nowcast_tracking; Estimate → Mixed frequency → Track a nowcast… |
beta | Nowcast backtests and tracking |
| Quantile nowcasts and growth at risk | QuantileBridge, nowcast_quantiles; Estimate → Mixed frequency → Quantile bridge equation (growth at risk)… |
beta | Quantile nowcasts, targeted predictors, weekly data and the mixed-frequency BVAR |
| Targeted predictors (Bai and Ng) | TargetedPredictors; Estimate → Mixed frequency → Targeted predictors… |
beta | Quantile nowcasts, targeted predictors, weekly data and the mixed-frequency BVAR |
| Weekly and daily series made monthly up to the ragged edge | weekly_to_monthly; Estimate → Mixed frequency → Weekly to monthly… |
beta | Quantile nowcasts, targeted predictors, weekly data and the mixed-frequency BVAR |
| Component bridges (GDPNow style): components' models aggregated by nominal shares or chained (Fisher) contributions, with bands, backtests and tracking by component | ComponentBridge, nowcast_components; Estimate → Mixed frequency → Component bridge (GDPNow style)… |
beta | Component bridges: GDP nowcast from its components (GDPNow style) |
| A mixed-frequency BVAR (Schorfheide and Song) | MixedFrequencyBVAR; Estimate → Mixed frequency → Mixed-frequency BVAR… |
beta | Quantile nowcasts, targeted predictors, weekly data and the mixed-frequency BVAR |
| A headless refresh with a store of each day's nowcasts and news | nowcast_refresh, pymetrix-nowcast refresh |
beta | guide |
Forecasting and evaluation¶
| Feature | API / dialog | Maturity | Detail |
|---|---|---|---|
| Forecast rounds with logged judgement, a store of rounds, fan charts | ForecastRound; Forecast → Forecast… |
stable | The forecast workflow |
| Rolling-origin backtests (real-time from vintages; probability forecasts with Brier scores) | backtest; Forecast → Backtest… |
stable | guide |
| Forecast comparison: Diebold-Mariano (HLN), Hansen's SPA, binary scores | Forecast → Superior predictive ability…, Binary forecast scores… | stable | guide |
Forecasts with standard errors, static and dynamic (analytic or simulated), with C() and fe() terms |
fit.forecast(..., dynamic=True) |
stable | guide |
| ARMA and GARCH forecasts with intervals; variance forecasts | fit.forecast |
stable | Volatility models (GARCH) |
| Conditional forecasts from VARs and BVARs: paths, ranges, structural scenarios | conditional_forecast, Bounds |
beta | guide |
| Density scores for nowcasts and quantile nowcasts (pinball loss, CRPS, PIT) | quantile_scores, density_scores, pit |
beta | Nowcast backtests and tracking |
Inference and model selection¶
| Feature | API / dialog | Maturity | Detail |
|---|---|---|---|
| Tests: Wald, Breusch-Godfrey (LM and F), Breusch-Pagan, White, ARCH, Ljung-Box, RESET, Chow, Jarque-Bera, LR | fit.test(...) |
stable | Specification and diagnostic tests |
The omitted-variables test (EViews' testadd) |
omitted_variables; Test → Omitted variables (add regressors)… |
beta | Specification and diagnostic tests |
| Non-nested tests (J, Cox) | Test → Non-nested tests (J, Cox)… | beta | guide |
| Structural breaks at unknown dates: Quandt-Andrews, Bai-Perron | fit.test("quandt_andrews"), bai_perron |
beta | guide |
| General-to-specific selection and indicator saturation | gets, isat; Estimate → Model selection |
experimental | General-to-specific selection and indicator saturation |
| Specification sensitivity and the specification curve | specification_grid; Estimate → Model selection → Specification sensitivity… |
experimental | Specification sensitivity and the specification curve |
| Estimation by simulation: indirect inference, SMM, EMM | indirect_inference, simulated_moments, efficient_method_of_moments |
experimental | Estimation by simulation |
Bootstrap and simulation¶
| Feature | API / dialog | Maturity | Detail |
|---|---|---|---|
| Bootstrap bands for VARs and VECMs: residual, wild, block, parametric, pairs; bias correction, Hall | Bootstrap, bootstrap= on irf, girf, fevd, historical_decomposition |
experimental | Bootstrap bands and intervals |
| Bootstrap for local projections and single equations: percentile, Hall and bootstrap-t intervals | LocalProjection.fit(bootstrap=), fit.bootstrap(...); Estimate → Bootstrap intervals… |
experimental | Bootstrap bands and intervals |
| Monte Carlo experiments, the same with any number of workers | MonteCarlo |
beta | guide |
| One random number generator for every seeded draw, recorded | set_random_generator; Calculate → Random generator |
beta | guide |
Machine learning¶
| Feature | API / dialog | Maturity | Detail |
|---|---|---|---|
scikit-learn learners ([ml]): ridge, lasso, elastic net, forests, boosting, networks; bagging |
Ridge, Lasso, RandomForest, Bagging |
beta | guide |
| LightGBM and XGBoost learners | LightGBM(), XGBoost() |
beta | guide |
| SHAP values of learners | shap_values, fit.shap(); Estimate → Machine learning → SHAP values… |
beta | SHAP values |
| Conformal prediction intervals | conformal; Estimate → Machine learning → Conformal intervals… |
beta | Conformal prediction intervals |
Models: solution and estimation¶
| Feature | API / dialog | Maturity | Detail |
|---|---|---|---|
| Solving backward-looking models: Newton, Gauss-Seidel, scenarios, fallbacks, blocks, convergence by period | Model.solve, Scenario; Model → Solution → Solve model… |
beta | Solving models; Solve a large backward-looking model |
| Stochastic simulation: error draws (normal, bootstrapped, given residuals), coefficients drawn, fan charts | Model.solve(draws=...) |
beta | guide |
| Models per entity of a panel, linked by trade weights and world aggregates | over= |
beta | guide |
| Models written as text in pymetrix's, Dynare's or IRIS's syntax, checked as typed | ModelSource; Model → Model editor |
beta | guide |
Dynare .mod import with the macro processor |
read_mod |
beta | Dynare files: measurement errors, generalised priors and macros |
IRIS .model import |
read_iris |
experimental | Coming from MATLAB/IRIS and Dynare |
| EViews model syntax, FRB/US XML and state-space objects | ModelSource(text, "eviews"), read_eviews_xml; Model → Import → FRB/US XML file |
experimental | guide |
| FRB/US worked example | docs/tutorials/frbus.md | experimental | tutorial |
| Forward-looking models: perfect foresight, steady state, QZ solution, IRFs, simulation plans | PerfectForesight; Model → Analysis → Impulse responses… |
beta | Forward-looking models |
| Bayesian estimation of linearised models: mode, Metropolis-Hastings, SMC, identification | estimate, fit.mcmc(); Model → Estimation → Metropolis-Hastings… |
beta | guide |
| The No-U-Turn sampler for linearised models | fit.mcmc(sampler="nuts") |
beta | guide |
| The analytic gradient of the Kalman-filter likelihood | fit.gradient() |
beta | The gradient of a model's likelihood |
| DSGE-VAR(lambda) | model.dsge_var; Model → Estimation → Estimate DSGE-VAR… |
experimental | guide |
| Regimes with known dates: solutions, filters, estimation, forecasts | Regime, regime_filter |
experimental | guide |
| Occasionally binding constraints (OccBin), optimal policy, optimal control, sweeps | occbin, optimal_control; Model → Policy → Optimal control |
experimental | Forward-looking models |
| Second-order estimation and the particle filter; the particle smoother | estimate(order=2) |
experimental | The particle smoother |
| Third-order perturbation | solve(order=3), third_order; Model → Solution → Second-order solution… |
experimental | Second- and third-order solutions |
| Prior stability mapping (Ratto 2008) | stability_mapping; Model → Analysis → Stability mapping… |
experimental | Global sensitivity analysis: prior stability mapping |
Heterogeneous-agent models (pymetrix-ha): Krusell-Smith, one- and two-asset HANK; decompositions by channel and by group of households |
HAModel, pymetrix_ha.examples; Model → Heterogeneous-agent model… |
experimental | Heterogeneous-agent models (pymetrix-ha) |
Fiscal (plugin)¶
The fiscal plugin is its own package, pymetrix-fiscal (experimental, not yet on PyPI; in a clone,
pip install -e packages/pymetrix-fiscal), with a Fiscal menu and workspace. Its help topic is Debt
sustainability analysis (pymetrix-fiscal). Results are PyMetrix's implementation of the published guidance, not
IMF or World Bank products.
| Feature | API / dialog | Maturity | Detail |
|---|---|---|---|
| Debt profile: the debt ratio and its composition (currency, short-term, creditor groups) with provenance; the identity's check on history | DebtProfile; Fiscal → Debt profile… |
experimental | Debt sustainability analysis (pymetrix-fiscal) |
| Deterministic DSA: the debt-dynamics identity with local- and foreign-currency debt, the SRDSF and 2013 MAC DSA decompositions, gross financing needs, the debt-stabilising primary balance | DSA.project, DSA.decompose; Fiscal → Debt sustainability… |
experimental | Debt sustainability analysis (pymetrix-fiscal) |
| Stress tests: the Debt Dynamics Tool's deterministic scenarios and your own | DSA.stress, StressTests.ddt2021; Fiscal → Stress tests… |
experimental | Debt sustainability analysis (pymetrix-fiscal) |
| The data layout (CSV or Excel) and a simulated example country | DebtProfile.read, Dataset.example("dsa_example") |
experimental | guide |
Finance (plugin)¶
The finance plugin is its own package, pymetrix-finance (pip install pymetrix[finance]), with a Finance menu and
workspace; its help topic Finance: which tool for which question is the map.
| Feature | API / dialog | Maturity | Detail |
|---|---|---|---|
| Value at risk and expected shortfall, with backtests (Kupiec, Christoffersen, Basel zone) | value_at_risk |
beta | Value at risk and expected shortfall |
| Fat tails and asymmetry: t and GJR GARCH in VaR, asymmetric DCC | beta | guide | |
| Multivariate GARCH: CCC, DCC, BEKK; DECO and VECH | beta | Multivariate GARCH | |
| Risk contributions: marginal and component VaR and ES | beta | Risk contributions | |
| Event studies of returns | beta | Event studies of returns | |
| Returns and performance ratios | beta | Returns and performance | |
| Factor models and portfolios: CAPM, Fama-French, GRS, efficient frontier | beta | Factor models and portfolios | |
| Portfolio strategy backtests; Black-Litterman | Finance → Portfolios → Black-Litterman… | beta | Portfolio strategies |
| Bonds and dynamic Nelson-Siegel | Finance → Fixed income → Bond measures… | beta | guide |
| Yield curves: Nelson-Siegel, Svensson, Diebold-Li | beta | Yield curves | |
| Realised volatility, jump tests, HAR | beta | Realised volatility | |
| Options: Black-Scholes-Merton, binomial trees, implied volatility | beta | Options | |
| Volatility surfaces: SVI, SABR, Heston | Finance → Options → Heston option price… | beta | Volatility surfaces |
| Credit risk: Merton distance to default, CDS intensities | Finance → Credit → Merton at a point… | beta | Credit risk |
| Copulas: elliptical, Archimedean, two-parameter, vines, time-varying, DCC copulas; portfolio VaR | Finance → Copulas → Copula portfolio VaR… | beta | Copulas |
| Finance example datasets and tutorial | Dataset.example(...) |
beta | guide |
Reports and figures¶
| Feature | API / dialog | Maturity | Detail |
|---|---|---|---|
| Reports to Excel, Word, HTML and Markdown, with templates, themes and a provenance appendix | Report |
stable | Reports |
| Coloured table cells in reports (filled in Excel, shaded in Word, coloured in HTML): heatmap tables | Table.fills |
beta | Surveillance heatmaps |
| Series plots: lines, bars, areas, scatter, histograms; axes, transforms, shading, recession dates | data.plot; Data → Plot series… |
beta | guide |
| Styling and annotation in matplotlib's terms, recorded and replayable; any Axes method as data | fig.line, fig.set, fig.call, Edit… → Style |
beta | How charts look |
| One house look, dark charts under a dark palette, house styles and style sheets as themes | pymetrix.figure_style, set_house_style, Theme.from_mplstyle |
beta | How charts look |
| More kinds: ECDFs, 2-D histograms, violins, hexbins, 3-D surfaces and lines, contours, heatmaps | kind="ecdf", surface_figure, heatmap_figure |
beta | guide |
| Coefficient plots, contributions, fan and vintages charts | coefficient_figure, contributions_figure; Estimate → Coefficient plot… |
beta | guide |
| Saving for publication; matplotlib code for any figure | save(size=...), fig.matplotlib_code() |
beta | guide |
| Editing figures in the app: notes, arrows, change markers, dragged and edited as recorded steps | Edit… on every figure | beta | guide |
App and dialogs¶
| Feature | API / dialog | Maturity | Detail |
|---|---|---|---|
| Command registry, session script capture, Jupyter forms | pymetrix.commands, Session.script() |
stable | guide |
| Desktop window: dock panels, a window per object, one theme module | PySide6 app | beta | guide |
| Generated dialogs: required fields, one Advanced section, plain-word errors | every dialog | beta | guide |
| Undo and Redo of dialog steps and figure edits | Edit → Undo, session.undo() |
beta | guide |
| Keyboard shortcuts, Find anything (Ctrl+K, with EViews', IRIS's and Dynare's command names) | Help → Keyboard shortcuts | beta | guide |
| Long steps in the background, the start page, the stage bar's badges | pymetrix.progress |
beta | guide |
| Next ▸ on every result window, and the How do I… pages from it | Next ▸ | beta | guide |
| The report outline: Add to report, the Report panel, export as code | Add to report | beta | guide |
| Workspaces for each stage (Explore, Estimate, Model, Forecast, Report) | Ctrl+1 to Ctrl+6 | beta | guide |
| Working sets and searchable series lists for large datasets; the spreadsheet editor | Show all | beta | guide |
| Help → Coming from EViews and Coming from MATLAB/IRIS | Help menu | beta | Coming from EViews |
| Autosave and recovery | every 2 minutes | beta | guide |
| Projects and replay; programs that read and write projects | Session.add(..., deferred=True), Call, Session.compute() |
beta | Reading and writing projects from programs |
| Exercise packs, provisional | pymetrix.exercises, Help → Exercises…, pymetrix-exercises check |
experimental | Exercises and exercise packs |
Guided case studies (pymetrix-guide, pip install pymetrix[guide]) |
the Guide panel | experimental | guide |
| MCP server for AI assistants (stage 1, closed by default) | pymetrix-mcp, [mcp] |
experimental | guide |
Programs, plugins and translators¶
| Feature | API / dialog | Maturity | Detail |
|---|---|---|---|
| Plugins: a template and a public surface; Extension API 1.13 (1.3 to 1.13 the newest, may still change) | pymetrix.extension, pymetrix-new-plugin |
beta | guide |
| Plugin management: status, enable or disable, a question before a plugin first runs | Help → Plugins… | beta | guide |
| Your own estimators and solvers | pymetrix.plugins.register |
beta | Writing your own estimator or solver |
| The translation framework for another language's programs | pymetrix.translation |
beta | Writing a translator for another language |
EViews workfiles (pymetrix-eviews): an export program and a bundle reader (the program not yet run in EViews) |
Dataset.read("x.evbundle"); File → Import EViews workfile… |
experimental | EViews workfiles (the pymetrix-eviews plugin) |
| EViews programs, phase 1: workfiles, samples, series, groups, scalars, matrices, functions | translate_program |
experimental | EViews programs (the pymetrix-eviews plugin) |
| EViews programs, phase 2: equations, systems, VARs, tests, forecasts, models | translate_program |
experimental | EViews programs (the pymetrix-eviews plugin) |
| EViews programs, phase 3: loops, conditions, subroutines, names from variables, date functions | translate_program |
experimental | EViews programs (the pymetrix-eviews plugin) |
| EViews programs in the app: the translation panel, Run as steps | File → Translate EViews program… | experimental | guide |
R scripts (pymetrix-r, phase 1): a parser of R without R; reading data, dplyr and base subsetting, lm, glm, sandwich in coeftest, feols, plm, ts, ADF and KPSS tests, vars; a report on every line with R's differing defaults as notes; steps mode; code and command line only |
translate_r; python -m pymetrix_r script.R |
experimental | R scripts (the pymetrix-r plugin) |