Skip to content

Known gaps

pymetrix is at version 0.1.0a22, a development build. This page lists what is missing or rough, so nobody has to discover it the hard way. After the project's own status, its sections follow the areas of features.md. The design document has a "Not yet" list for each area; this page collects the ones that matter most to a first-time user. If something here is blocking you, say so: that is how priorities get set.

Project and release

  • A development build, pre-release on PyPI. pymetrix 0.1.0a22 is on PyPI (pip install --pre pymetrix), and so are the plugins pymetrix-eviews (0.1.0a2), pymetrix-seasonal, pymetrix-finance, pymetrix-guide, pymetrix-labbook and pymetrix-assistant (0.1.0a1, pip install --pre pymetrix-seasonal, say); pymetrix-psets, pymetrix-ha, pymetrix-r and pymetrix-fiscal are installed from the repository. Alpha versions: APIs may still change. No installer yet; see installing pymetrix. A one-step installer for locked-down Windows machines is not started; pymetrix-gui --shortcut makes a desktop shortcut once installed.
  • One developer so far. Most code was written quickly, with AI assistance, and checked against other implementations (see validation). It has not yet been reviewed by anyone else, and some internals will change.
  • Packaging. CI checks on every change that the wheel installs and passes the whole test suite in a fresh environment, and that every dependency works at the oldest version pyproject.toml allows (Python 3.11). The course labs are in the repository, not in the installed package.
  • The API may change before 0.1. Saved projects are versioned, and older ones are migrated when opened, so projects should keep opening as it changes.
  • Documentation is the README, the user guide, the in-app help, the course packs and a command and function reference generated from the code; there is no hosted site yet.

Data and connectors

  • A time axis from a first period (Dataset.from_frame(df, start=..., freq=...)) dates every row of a frame or a CSV or Excel file one period apart: a time series only (no panels: give time= and entity= columns), with frequencies Y, Q, M, W and D as Dataset.empty (R's frequency = 52, 7 or 24 has no counterpart). There is no Dataset.from_arrays; make a DataFrame first.
  • Distribution and moving-window functions: no other families (Weibull, negative binomial, noncentral t, chi-squared or F). No derivatives in the degrees of freedom of t, chi-squared and F, the shape parameters of gamma and beta, or a binomial's n: linearising a model in one of those (or estimating it by a method that needs that derivative) is refused. Moving minima and maxima, and the integer quantiles poissinv and binoinv, are not differentiable either. Only normcdf, normpdf and erf can be written to Dynare or IRIS. Moving windows (trailing or centred) are of a fixed length up to 1000 periods, with no min_periods; expanding windows (cumavg ...) work on data only (not in models or estimation by arrays), have no derivative, and skip missing values as pandas' expanding() does.
  • Co-skewness and co-kurtosis use the periods every series has (no pairwise version) and the T denominator only (no bias-corrected co-moments, so their diagonal is g1 and b2 rather than describe()'s G1 and G2); no shrinkage or structured (single-factor, constant-correlation) estimators of M3 and M4, and no portfolio skewness or kurtosis from them. The full M4 has n³ columns: thirty series give 27,000.
  • Matrices with names are dense, two-dimensional and real or complex; there are no sparse or three-dimensional ones. qz gives the real form without reordering (no ordqz), and the Riccati solver is discrete only. In the app, a matrix window's Matrix menu offers the common steps (transpose, inverse, Cholesky, SVD, eigenvalues, QR, LU, Schur, power, Lyapunov); QZ, the Sylvester and Riccati equations, expm/logm/sqrtm, null spaces and the matrices of matrix calculus are written as expressions (Model → Matrix → Expression…). An expression is one Python expression of names, calls, operators, indexing and literals: no comprehensions, conditionals or lambda.
  • Row conditions (where=, a sample's condition) are pandas' DataFrame.eval syntax, checked first: pandas' .str and .dt accessors, @ references to Python variables and functions other than pandas' maths functions are refused. A time axis compares with text in order (time >= '2000Q1') but not with ==, != or in, as before. The dialogs' check as you type reads a condition with pymetrix's formula parser, so it can flag a valid condition (country in ['DEU']) that runs.
  • Large Parquet data (Dataset.read(path, columns=, where=, span=), pymetrix.io.scan) only reads less: what is read is held in memory as any dataset is, and estimation, models, matrices (dense: there are no sparse ones) and each calculation step work on it in memory, one step at a time. Only Parquet files and folders take a selection (read a CSV or Excel file whole, then keep and select); arithmetic, functions, not, comparisons of two columns and ==, != and in on periods and dates are applied after reading, not pushed down. A folder must be partitioned the hive way (year=2010/); the Load data dialog picks a file, not a folder (a folder is read in code), and offers its Part of a large file fields above a fixed 100 MB. Object stores (s3://, gs://) are not read. A project's reference to a file (embed=False) is its absolute path, checked by a fingerprint of each file's size and footer, not a hash of every byte. There is no lazy engine: polars or DuckDB (not dependencies) would add group-bys, joins and aggregation over data larger than memory, computed before anything is loaded, which pymetrix does not do (aggregate after reading a selection).
  • Assignment within a sample and empty datasets (with_series(..., within=...), Dataset.empty). A formula that uses the series it assigns is computed one period at a time, so on a long daily series with a wide sample it is slower than one pass. The active sample (Set sample) still does not limit Generate series: give the sample under Within. Dataset.empty makes a dated time series only (no empty panel or undated page; from_frame builds those from their entities), with no dialog field to declare series: add them with Generate series or the spreadsheet.
  • Data connectors cache searches and metadata but not downloaded data (each Dataset.read asks the provider again). Dataset.read takes one ALFRED vintage by date; every vintage of a series comes through read_vintages (with a FRED API key; see Nowcasting), but the series browser shows no vintages or release dates. File → Browse series… searches FRED only with an API key (reading by ID needs none). World Bank search filters a source's indicator list locally (the World Development Indicators by default; "all" downloads every indicator once); SDMX search matches dataflow names and descriptions, not series titles, and the browser does not check that a key has data before Load; SDMX providers' structure queries follow SDMX 2.1 REST and were tested only against hand-written structure messages (the providers could not be reached from the build machine), and Eurostat's full dataflow list is large on first use. Searches are not recorded as steps. How a dimension's codes are found (a code list of another agency, a concept's representation, a code list asked for on its own, content constraints) follows the SDMX 2.1 standard and is tested on a hand-written World Economic Outlook structure, not yet on the IMF's own answer. The dataflow folders are the provider's own categories (SDMX 2.1 category schemes and categorisations), else name families, ID prefixes or a flat list; the category trees are tested on hand-written ECB-, Eurostat- and IMF-like answers only, not yet on any provider's live answer, and the request used (categoryscheme/{agency}/all/latest?references=parentsandsiblings) has not been checked against each provider's documentation. A category tree is read whole, once a week; Eurostat's may be large on first use.
  • Generate series for each (Data → Generate series… with For each; Dataset.with_each) matches names with * and ? only (no [...] sets or regular expressions) and does not take a named selection or metadata in the dialog: type the names, pick them in the series list, or pass data.series(units=...) to with_each in code. The preview checks names, parsing and that the series a formula uses exist; a formula that fails only when computed (a function given the wrong arguments) fails at OK, with the step not recorded.

Single equations

  • Robust regression and restricted least squares: RobustLS is M-estimation only (no S- or MM-estimators, so no protection against outlying regressors), with Huber's and Tukey's bisquare norms (not Hampel, Andrews or others), the MAD scale (not Huber's proposal 2) and the H1 covariance (not H2 or H3, nor robust or clustered sandwiches); linear-form equations without fixed effects or weights. Restrictions on OLS and IV are linear and on linear-form equations only (substitute nonlinear ones, or restrictions on explicit-form parameters, into the equation), and are not offered on GMM, ML or the wrapped estimators. The test of the restrictions reported with the fit is the Wald test on the unrestricted fit (no likelihood-ratio or LM form). A coefficient a restriction fixes has a zero standard error, so its t statistic is undefined.
  • HC0 and HC2 to HC5 (cov="hc0", "hc2" ... "hc5") are offered for OLS and, HC0 only, for IV. HC2 to HC5 are refused for explicit-form (nonlinear) equations and for IV (2SLS has no standard hat matrix, and linearmodels offers none), when an observation has leverage 1 (a group of one under fe()), and with several fe() terms of more than 5000 levels in all (the dummies' leverage inverts their cross-product: put the smaller effects in as C(...) dummies). ML, GMM, systems and the estimators wrapped from linearmodels (LIML, IV-GMM, panels) keep their own choices: there, cov="white" with debiased=False is linearmodels' HC0. HC4m is not offered.
  • GMM on moment functions (MomentGMM) is code only, with numerical derivatives, and has no dialog (a Python function cannot be a dialog field).
  • Regression without a formula (pymetrix.ols) is least squares only (no IV, ML or fixed effects to absorb: put dummies in X, or use a formula), with the standard errors OLS has (White is HC1; HC0 and HC2 to HC5 as Equation.fit). It is for code, with no dialog. Column names must be plain series names (letters, digits and _); other names are refused, not rewritten. Data without a PeriodIndex (or dates with a frequency) are a cross-section, so HAC and Durbin-Watson need one. A row whose values are all present but infinite is dropped with the reason "lag", as a formula fit records it.
  • ARMA errors with GARCH variance are estimated by conditional likelihood (the first p periods conditioned on), natively only (not through arch). Beyond one step ahead, the bands of GARCH forecasts with t, skewed-t or GED errors take the one-step distribution's quantiles, though the multi-step errors are mixtures. Dynamic forecasts of an equation with ARMA errors or a GARCH variance whose regressors depend on the dependent variable other than as lags of the left-hand side (y ~ d(y)[-1]) have no standard errors; stochastic simulation of the equation as a model gives them (plain regressions simulate them themselves: see Forecasting and evaluation).
  • Bayesian single equations are linear (Gaussian, logit, probit, Poisson), without GARCH errors or explicit forms; samplers are Gibbs, random-walk Metropolis-Hastings and NUTS (diagonal or dense mass matrix; no Riemannian metric for funnels). ARMA errors (Equation(..., errors=ARMA(p, q)) with Bayes) take consecutive lags only (no subset lags such as ar=[1, 4]), Gaussian errors, normal or flat priors on the coefficients and inverse gamma on the variance (no other families; no NUTS or a Gibbs step for the ARMA parameters themselves: they are sampled by adaptive random-walk Metropolis on their partial autocorrelations, which mixes more slowly near the unit circle and when AR and MA roots nearly cancel); the conditional likelihood is for AR errors only. Their posterior predictive paths (posterior_predictive, forecast(dynamic=True), fan_chart) need regressors that are not lags of the left-hand side (the dynamics go in the AR terms), and are not yet used by backtests' density scores; posterior predictive checks use a fixed set of statistics. Monte Carlo standard errors are for means and quantiles (mcse(), also for Bayesian VARs and DSGE posteriors), not for HPD bounds; for sequential Monte Carlo they rest on the particles' effective sample size, not on a run-to-run variance.
  • Seasonal dummies (seasonal(), C(quarter), C(month)): quarterly and monthly seasons only (no weekly or daily seasons, and seasonal() on daily data is refused); fixed 0/1 dummies, not centred or sum-to-zero seasonal contrasts; like C() they cannot be used in explicit-form equations, models or GMM. Prediction and forecasts with C() and fe() terms take the fixed effects as known (their estimation error is not in the standard errors), and a dynamic forecast from such an equation needs it linear in the target's lags (no simulation for it).
  • Convergence is recorded for the iterative estimators (ML, ARMA, GARCH, Markov switching, MIDAS, state space, model estimation); quantile regression reports non-convergence only as a warning.

Microeconometrics

  • Applied microeconometrics (double ML, shift-share IV, interactive fixed effects, conditional logit): double ML takes one treatment at a time, clusters in one or two dimensions (not three or more), regression (not classification) learners for a 0/1 treatment in the partially linear models, no tuning of the learners' settings, no joint confidence bands or multiplier bootstrap; its sensitivity analysis covers the partially linear regression and the interactive model (not the partially linear IV model), benchmarks one set of controls per refit, and its one-way clustered variance keeps pymetrix's G / (G - 1) form rather than DoubleML's fold-wise one; IRM's propensities are trimmed, not normalised (Hajek). Shift-share IV has one endogenous regressor and one shift-share instrument (no overidentified or multiple-shock designs), region clusters in one dimension only (region_clusters=, not two-way), no shock-level controls in the BHJ regression (it has no constant, which is what makes it equal the regional IV; control for the sum of shares at the regional level), no AKM degrees-of-freedom correction, and Rotemberg weights without each share's first-stage F; AKM needs no more industries than regions. Interactive fixed effects need a balanced panel without gaps; the bias correction covers heteroskedasticity across units and over time only (not serial or cross-sectional correlation, Bai's D term), and the number of factors is chosen from the residuals of the fit with the most factors; there is no dynamic-panel (Moon-Weidner) version or CCE comparison in one result. The conditional logits give no ranked or multiple choices per case (a case with other than one choice is dropped). Their margins (clogit_effects, choice_margins) have no second differences (interactions), no elasticities at at() profiles and no standard deviation changes; the panel logit has odds ratios, with effects and discrete changes only at a fixed effect the user chooses (the probabilities depend on the unidentified fixed effects). The Hausman–McFadden test refits McFadden's conditional logit only (no subset test after the nested or mixed logits, and no Small–Hsiao test).
  • Causal forests: the trees are scikit-learn's CART on GRF's gradient pseudo-outcomes computed once per tree (GRF recomputes them at every node), with none of GRF's split balance (imbalance penalty) or minimum treated and control counts per leaf beyond min_leaf; one treatment at a time, no instrumental (IV) forest, no sample weights, no tuning of the forest's settings, no equal sampling per cluster, and no survival, quantile or local-linear forests. Intervals are pointwise (no uniform bands over observations); the variance falls back on the between-bag part where the bootstrap of little bags gives a negative estimate; the continuous treatment's conditional variance E[D~^2 | X, W] is learned by the treatment's learner and floored at 5% of its mean. There is no rank-weighted average treatment effect (RATE/TOC), no GATES or CLAN (sorted group effects), no policy trees, and predict gives effects at new modifier values (no average effects for a new sample).
  • Nested and mixed logit: the nested logit has two levels (no three-level trees, no cross-nested or other GEV models), the RU2 form only (no RU1 or non-normalised form), FIML only (no sequential estimation); its effects are on the result's tab, in marginal_effects() and in choice_margins (Estimate → Microeconometrics → Choice model margins…, which takes all three choice models). The mixed logit's random coefficients are normal or lognormal only (no triangular, uniform or truncated normal), on attributes only (not on alternative constants or case characteristics, so no error components), with no willingness-to-pay space, no shuffled Halton or modified Latin hypercube draws, no weights, no latent classes, and no check of stability across numbers of draws (estimate again with more draws); its effects are averaged over the cases (not at the means). Predictions for new data (predict) give probabilities only (no conditional, choice-informed predictions for a decision maker seen in the estimation).
  • Margins (marginal_effects, predictive_margins): for linear-form equations (no fe() terms, no error model), logit, probit, Poisson and the limited dependent variable models; not after Heckman, IV-probit, panel estimators with fixed effects, explicit-form (NLS) equations or systems. Averages are unweighted over the estimation sample (fit weights are ignored) and there is no over() (averages within groups of the sample: use at= profiles instead), no elasticities (Stata's eyex, dyex), no standard errors that allow for sampling of the covariates (vce(unconditional)), and no plot of margins against a variable (marginsplot). C() dummies are 0/1 columns of their own, each against the base category (no factor-level contrasts as Stata's i. gives); a lagged variable is a variable of its own (no long-run effect through all its lags); a term the equation's expressions cannot rebuild on the sample (a group-wise function) is taken as a variable of its own. Contrasts are against the first profile only (no pairwise or adjacent contrasts, no multiple-comparison adjustment). The conditional, nested and mixed logits have their own margins (clogit_effects, the fits' own marginal_effects() methods and choice_margins), not the marginal_effects(fit, ...) function.
  • Survival analysis: no frailties (shared or individual random effects), no Fine-Gray subdistribution hazards regression and no Gray's test across groups for competing risks (cumulative incidence is Aalen-Johansen's only), no generalized gamma, Gompertz or piecewise-constant parametric models, no interval censoring, and no exact partial likelihood for tied times (Breslow's and Efron's only). Survival curves after Cox use Breslow's baseline hazard whichever ties (R's survfit uses Efron's after an Efron fit), and the Cox result's own baseline table is statsmodels' (the cumulative hazard just before each event time); a profile's regressors not given are at the means of the rows, which with counting-process data are spells, not subjects. Parametric models have no frailty, weights or clusters, and their curves intervals are pointwise. The Schoenfeld residuals are statsmodels' (Breslow's risk-set averages, whichever ties), and the proportional-hazards test is Grambsch and Therneau's approximation (as R's cox.zph before version 3 and lifelines), not the exact score test of cox.zph since. Hall-Wellner bands are 95% only, and the stratified log-rank test cannot be combined with entry times (statsmodels' survdiff mixes entry times across strata).
  • Panel unit roots and cointegration: Breitung, Pedroni, Kao and Westerlund are checked by hand, against published moments and by simulation, not against another package's output; Westerlund's bootstrap for cross-section dependence and CIPS with several factors are not built.
  • Simulated critical values. The Im-Pesaran-Shin, Pedroni and Westerlund moments and the CIPS critical values are simulated for each panel rather than read from published tables, so results differ from other packages by simulation error (reported with the result; typically under 0.02).

Time series and macro

  • Surveillance heatmaps and k-means: the heatmap takes time series, not a panel (take one entity first); a release calendar (calendar=) dates only the lower-frequency readings under fill="latest" (a series at the heatmap's own frequency is shown in its own period, as before); a window longer than a series' history leaves it blank rather than shortening the window; the composite's PCA weights come from the periods where every series is observed; the heatmap is a picture in reports, with its tables coloured cell by cell; there is no interactive drill-down from a cell to its series. K-means uses Euclidean distances only (no k-medoids, Gaussian mixtures or other linkages), drops or refuses dates with missing values rather than imputing them, and its silhouette is O(n²) in memory (fine to some thousands of dates). The standing functions (movzscore...) have no derivative and no centred forms; movquantile has no expanding form.

  • Interventions and transfer functions: a transfer function's decays come from a short grid of the profile likelihood then a joint BFGS (a multimodal likelihood can need other starting decays, not settable yet); the filters start from zero before an input's first value (no backcasting of presample values for series inputs); no standard errors or intervals for the effect path, the counterfactual or the forecasts' effect column (the forecasts' own intervals are SARIMAX's, given the decays); Box-Tiao's iterative approach and rational transfer functions in the disturbance's seasonal part are not offered; the dialog takes first-order decays only (code takes den up to 4 and num and delay); seasonal_pulse is a seasonal step (every year from the date), not X-13's seasonal outlier. Intervention functions are refused in models and cannot be lagged (make them a series first).

  • Bayesian VARs take the Minnesota prior in its conjugate form (Minnesota), its hierarchical form (GLP: Giannone, Lenza and Primiceri's hyperpriors, at the mode or by MCMC over the hyperparameters) or its independent normal-Wishart form (NormalWishart, by Gibbs, with Chib's marginal likelihood and a search over it). Not yet: GLP's MCMC for the independent form. The lag decay's hyperprior (decay_hyperprior=True) is a gamma on the exponent; GLP's own code fixes it, so no published numbers check it. The search for the independent form is slow (a Gibbs run for each trial, minutes on large VARs) and only as precise as Chib's estimate from its shorter runs. GLP's published replication results were not reproduced here (their data and code were not available offline); the marginal likelihood is checked against the conjugate one and the MCMC against a grid.
  • A quantile VAR's params have no covariance (none is estimated).
  • The eigenvalue fluctuation test (vecm.fluctuation_test) takes its p-values from a bootstrap, not Hansen and Johansen's asymptotic distribution, which could not be made to hold its size here; it costs a few seconds, and its power is moderate (54% at 5% for a large fall in adjustment, T = 200).
  • Historical decompositions are for VARs, Bayesian VARs, VECMs, panel VARs, proxy SVARs, BVAR-SVs and MS-VARs (not quantile VARs or DSGE-VARs, below and above); bands come from a Bayesian VAR's or BVAR-SV's posterior draws, a sign-identified set, a panel VAR's coefficient draws (with the residual covariance held at its estimate, as its impulse-response bands do; or, with bootstrap="pairs", from re-estimates on resampled entities), a proxy SVAR's moving-block bootstrap, an MS-VAR's draws from its estimates' asymptotic distribution or a point-identified VAR's bootstrap (parametric by default, as its responses' bands; residual, wild, block or pairs with bootstrap=); a VECM's have no bands. A panel VAR's are entity by entity (the result window shows one entity, chosen in the dialog or by hd.select(entity), not with a picker in the window); its fixed effects are the entities' means of the data less the lags' effect, not estimated by GMM themselves. A proxy SVAR's other shocks are shown together, not one by one.
  • BVAR-SV, MS-VAR and quantile VAR decompositions are recursive (Cholesky in the VAR's order) only. A BVAR-SV's variance decomposition holds the volatilities at one date's values over the horizon (not their expected future path); its point values are posterior means. An MS-VAR's variance decomposition holds the regime fixed (no switching over the horizon; its generalised impulse responses, girf(regime="evolve"), let it switch); its historical decomposition conditions on the most likely regime path (smoothed probabilities). An MS-VAR's bands (responses, variance and historical decompositions) come from draws of the parameters from the ML estimates' asymptotic normal distribution, not a bootstrap: they rest on the asymptotics (responses' 90% bands covered the truth 87 to 88% of the time in a 300-period Monte Carlo), keep the estimates' regime labels, hold a transition row with a probability at 0 or 1 fixed, and are refused when the likelihood is flat (regimes that barely differ); the historical decomposition's bands leave out the uncertainty about the regime path. An MS-VAR's fit is a local maximum still: its starts (regime paths read off the data, then random splits, each screened by a short EM run) find clearly separated regimes, but regimes that differ only in their lag coefficients, or only a little, can still be missed, and nothing searches for a higher maximum once the best few starts have converged; refit with more starts or another seed and compare log likelihoods. A regime whose own covariance rests on a handful of periods can make the likelihood unbounded (as in any switching-variance model); such starts are dropped as collapsed (under half a period of probability) but nothing bounds the covariances. A quantile VAR's variance decomposition orthogonalises the quantile residuals' covariance by Cholesky or, with generalised=True, by Pesaran and Shin's generalised decomposition (rows normalised), without bands in either; a quantile VAR has no historical decomposition: its residuals are not centred away from the median (at 0.1, nine in ten are positive), so a "baseline" quantile path plus shock contributions mixes location with shocks, and the literature has no established version.
  • Zero and sign restrictions compute ARW's importance weights by numerical differentiation (a few milliseconds a draw for a few variables, growing with n^4); zeros are on impact and in the long run, not at other horizons or on A0's coefficients; a shock's columns are not searched over (each shock keeps its column, as in ARW). Draws are resampled by weight rather than kept with their weights. Not compared with the authors' MATLAB code.
  • Cointegrating regressions take the rows a span and a row condition (where=) keep, and rows with missing values dropped, as consecutive periods: leaving rows out of the middle of the sample joins the periods either side. Their automatic Bartlett bandwidth is Newey and West's (1994), as arch 9.0 and R's sandwich choose it, and like any plug-in rule it is noisy: one more autocovariance in the pilot can move it by several lags, and it can be 0 (no serial-correlation correction at all) when the summed series' autocovariances cancel, as for FMOLS and CCR with a trend on the 400-row simulated system in the tests, whose errors are AR(1) with 0.5. Give a bandwidth and check that the conclusion survives a few. pymetrix 0.1.0a18's rule (bandwidth_rule="legacy", arch's before 9.0) was removed after 0.1.0a20: results from 0.1.0a18 and earlier can be repeated only with pymetrix 0.1.0a20 or earlier (or arch 7 or 8, with a whole-number bandwidth given, where the two rules use the same lags).
  • Phillips-Ouliaris is computed by arch, and with the bandwidth left empty arch chooses it: arch 9.0 chooses it differently from arch 7 and 8 (Newey and West's rule as above), which can move the statistic and p-value a long way (US consumption on income, statsmodels' macrodata: Zt -3.03, p = 0.105 with arch 8; -3.33, p = 0.052 with arch 9). pymetrix supports arch 7 and later, so the details give arch's version and the bandwidth used; give a bandwidth to repeat a result under any version.
  • Simulated critical values (ADF, Engle-Granger): the null is independent Gaussian random walks with no drift and i.i.d. normal increments; serially correlated or heavy-tailed increments, a drift under the null, or regressors with different variances are not simulated (the lag search absorbs some serial correlation, as it does in the data). exog is for Engle-Granger only (ADF's regression has no fixed regressors), and needs the simulated values. The p-value is the share of draws at or below the statistic, so it is zero when no draw is that small; it has a Monte Carlo standard error, and more draws narrow it. KPSS, Phillips-Perron, DF-GLS and Phillips-Ouliaris keep their tabulated or response-surface values.
  • Default largest lag of ADF and Engle-Granger in short samples: capped so the largest search regression keeps 4 residual degrees of freedom (counting Engle-Granger's levels regression); below about 26 observations this differs from statsmodels' and arch's defaults (arch caps at (n - 1)//2 - 1 - terms), so results there match theirs only given the same largest lag. Four degrees of freedom is a floor against a degenerate regression, not a guarantee that the information criteria choose well: in samples this short they still lean to long lags, and a small fixed max_lags is usually wiser. Pedroni's rule, int(12 (T/100)^(1/4)), is capped the same way; the Ng-Perron and ERS tests keep theirs (the modified AIC's penalty grows without bound as the fit becomes exact, so it does not pick a degenerate lag).
  • Seasonal adjustment: STL, classical, X-13 (needs the X-13 binary) and TRAMO-SEATS (needs Java 21 and JDemetra+'s libraries); no JDemetra+ X-13, revision analysis or diagnostics tables beyond what each method records. TRAMO-SEATS takes interventions and user regressors (holidays as series of the dataset), but not JDemetra+'s national holiday calendars or fixed ARIMA coefficients.
  • Temporal disaggregation and reconciliation are checked against formulas written in the tests, not yet against R's tempdisagg or another package's numbers. Soft constraints take one standard deviation per low-frequency value (no correlated errors) in the data's units; for Denton it is a penalty against the Denton criterion, whose scale for proportional Denton is that of ratios, so the same soft is tighter there than for the regression methods. With soft constraints the regression methods' coefficient covariance is the maximum-likelihood one, without the degrees-of-freedom factor of the exact fit. Seasonal differences are for quarterly (lag 4) and monthly (lag 12) data only, and proportional Denton keeps the ratio's seasonal changes smooth rather than the pattern exactly; without the level penalty (level_penalty=0) the within-year pattern is the minimum-norm one. No Santos Silva-Cardoso dynamic method, and no multivariate (several low-frequency series at once) Chow-Lin. Reconciliation is in first differences or least squares (variances in proportion to the values, or one constant variance per component: no variances that differ by period, and no covariances between components or periods), with exact constraints only (no reliability weights on the total or on the low-frequency values), no ratio (RAS) or non-negativity constraints, and dense matrices: a few hundred periods and a dozen components are quick, much larger systems are slow. Denton with no low-frequency totals to meet has no unique answer (a constant can move between components), and the one returned depends on the linear-algebra library. An aggregation matrix entered in code is not part of a saved project unless a step made it.
  • Threshold and smooth-transition autoregressions have two regimes, split by a lag of the series itself; no neural networks; there is no smooth-transition VAR.
  • Generalised impulse responses (girf, Koop, Pesaran and Potter) are for threshold and smooth-transition ARs, threshold VARs and Markov-switching VARs (MSVAR, an MS-AR with one variable; not the statsmodels-based MarkovSwitching regressions), with recursive (Cholesky) shocks only; a threshold VAR whose threshold variable is not one of its variables takes regime="fixed" only; bands hold the threshold, delay and error covariance at their estimates (and an MS-VAR's regime labels), and each parameter draw averages at most 50 histories per group; the regime groups are by the regime the shock arrives in (an MS-VAR's most likely, by the smoothed probabilities), not by a user-given dating such as NBER recessions.

Nowcasting

Bridge equations, MIDAS and the mixed-frequency dynamic factor model each give a nowcast with a standard error, an interval and density scores against the outturn (nowcast_density); the factor model takes block structures and, optionally, each series' full history, period masks and an outlier rule (mask=, outliers=; bridge equations and MIDAS take masks too). nowcast_backtest scores nowcasts by release day, pseudo-real-time or, with ALFRED vintages (read_vintages, vintages=), in real time; nowcast_tracking follows a quarter's nowcast with each release's news, grouped by release with a ReleaseCalendar; revision_analysis describes a series' revisions; apply_tcodes applies FRED-MD transformation codes; a real-time backtest is scored against the latest data or a chosen release (outturn=); nowcast_refresh (pymetrix-nowcast refresh) runs the models headless and keeps a store of each day's nowcasts. QuantileBridge gives quantile nowcasts and growth at risk from monthly data (scored in backtests by pinball loss, CRPS and PITs), TargetedPredictors chooses indicators by Bai and Ng's thresholding, weekly_to_monthly brings weekly and daily series in as monthly means with a month-to-date indicator, and MixedFrequencyBVAR is a Schorfheide-Song mixed-frequency BVAR. What remains, most useful first (from an audit of the nowcasting workflow against central-bank practice):

  • News for every model, and revisions by series. News gives a single number for the impact of revised data (statsmodels' per-series revision details are not shown). Bridge equations and MIDAS have no figure-by-figure news: their change is split into new data and re-estimation only, also in nowcast_refresh's store.
  • Fat tails after the pandemic. Masks and the outlier rule set values to missing; there are no fat-tailed or stochastic-volatility idiosyncratic errors, and no dummies in the factor model. A bridge equation's or MIDAS model's mask leaves quarters out of the sample but keeps their values as lags.
  • Release calendars from providers. A calendar comes from a table, fixed lags or ALFRED's vintage dates: FRED's release-dates service (fred/release/dates), weekday and holiday rules and the BEA's or BLS's own schedules are not read, so future release days must be given in a table.
  • Vintages beyond ALFRED. read_vintages reads ALFRED (FRED API key) one series at a time, uncached; there is no real-time panel from other providers (the ECB's or the Philadelphia Fed's real-time databases), no concurrent seasonal adjustment within a real-time loop.
  • The refresh runner. It reads a TOML or JSON specification, not a saved project's steps; it re-estimates each model on every run (no fixed parameters between re-estimations), and its report is Markdown only. Scheduling is left to cron or a CI workflow (an example is in the guide).
  • Building large panels. No table of stationarity tests for a panel (the transformation codes are there).
  • The bands. The factor model's band leaves out the parameters' estimation error (it is the Kalman smoother's variance given the estimates); the bridge's leaves out the error in the AR coefficients that fill the missing months; all three are normal. nowcast.combine averages points only: no density of a combination. The factor model's factor_multiplicities, per-block VAR orders and standardize are reached only through backend_options, and the dialog's blocks are one factor each.
  • Quantile nowcasts. QuantileBridge takes the quarter's averages or months (U-MIDAS), not restricted MIDAS lag polynomials; its skewed t is matched to four quantiles by least squares, so when the quantiles have thinner tails than a normal the match is not exact (knot_gap; the degrees of freedom stop at 60); quantile crossing is fixed by sorting, not by a joint estimate; the quantiles treat the months filled by AR forecasts as known.
  • Targeted predictors. Thresholding is by each indicator's quarterly average; the factor model's sample is the kept series' common one, and soft thresholding keeps a number given (keep), not one chosen by an information criterion. No diffusion-index helper on unbalanced panels (principal components still need a balanced one).
  • The mixed-frequency BVAR is a first version: monthly and quarterly only, the conjugate Minnesota prior (no sum-of-coefficients or single-unit-root dummies, no GLP hierarchical sampling of the hyperparameters: they are fixed or chosen once by the marginal likelihood after the burn-in), no stochastic volatility, no news decomposition; its simulation smoother works on the whole monthly path at once, so long samples with many variables are slow (about 20 ms a draw for three variables over 25 years).
  • Weekly and daily data enter as monthly means and a month-to-date series (weekly_to_monthly), not in their own frequency: no weekly factor model (statsmodels' model is monthly and quarterly only, and pymetrix has none of its own). One high_lag for all of a MIDAS model's indicators.
  • Model breadth. No machine-learning MIDAS (sparse-group lasso).
  • Component bridges aggregate the components given, not the BEA's detailed series (a Fisher index of a few components differs from the published one at second order); inventories and net exports enter as growth rates with a (possibly negative) level, not as contributions modelled directly; a deflator not yet published repeats its last quarterly change rather than having a model of its own; the band leaves out the uncertainty of rolled-forward shares and treats the components' errors as jointly normal; tracking splits a component's change by release only for a dynamic factor model (other models' changes are new data and re-estimation).

Forecasting and evaluation

  • Forecast rounds carry their own record (data end, judgement, notes, conditions) and a provenance: the forecast's own when it has one (a model Solution's), otherwise the data the forecast started from (vintages, the rows up to the data end, a fingerprint). A VAR's or an equation's forecast is a dataset without the model's provenance, so a report built only from its round has the data's appendix, not the estimation's (sample, method): add the fitted model to the report as well (Lab 3 does). A round read back from a ForecastStore records only the store's record (where it was kept, when it was made, the data end).
  • Forecasting (chapter by chapter in the forecasting course pack) follows Elliott and Timmermann's chapters on evaluation, combination, model averaging, asymmetric losses, binary forecasts, exponential smoothing and conditional forecasts, with these limits:
  • backtests of Logit and Probit probability forecasts use the regressors' values in each target period (lag them for genuine forecasts; no forecasts of the regressors), and their calibration is by equal-width bins only;
  • dynamic forecasts from plain regressions that are not linear in the target's lags (dlog(c) ~ dlog(c)[-1]) have simulated standard errors, and backtests score their density as a normal with them, not from the draws;
  • Bayesian model averaging takes up to 15 candidates, with the g-prior only;
  • conditional forecasts with ranges ("between 3 and 4%") draw from the truncated distribution by Gibbs sampling with a fixed number of sweeps per chain (100), with no convergence diagnostics; very tight, strongly correlated ranges over many periods mix slowly. Ranges are hard bounds: no density conditions (a condition given as a whole distribution, as in Andersson, Palmqvist and Waggoner 2010). VARs, Bayesian VARs and first-order model plans only (model plans keep variables within ranges deterministically, with the smallest shocks, not by drawing);
  • structural scenarios (shocks=) from a Bayesian VAR identified by sign restrictions are not available, and a classical VAR's use the median-target impact matrix only (no draws across the identified set); when the shocks named cannot meet the conditions the forecast is refused rather than met in a least-squares sense;
  • update_posterior=True (Waggoner and Zha's Gibbs sampler, the posterior updated by the conditions) keeps the prior's hyperparameters fixed at the fitted values, and needs every shock free to move;
  • realized-volatility (HAR) and multivariate GARCH models (chapter 13) are in the finance plugin (pymetrix-finance), not the core package.

Inference and model selection

  • General-to-specific selection and indicator saturation: GETS works on linear-form least-squares equations of a single time series (no IV, panels, weights, fe(), C() or seasonal() terms, ARMA errors or GARCH variances, which R's gets models through its variance equation); the search runs once from the GUM (no second round from the terminal models' union, as Autometrics does: the union is reported only), with no pre-search lag reduction, no "tiny" or "liberal" presets and no automatic choice of the diagnostics' lags. Indicator saturation has impulse and step indicators only (no multiplicative (MIS), trend (TIS) or designed break-function indicators, no ultra-saturation), equal-sized blocks within each kind (no adaptive block sizes or cross-kind blocks), no test of the retained indicators' significance as a whole (the Jiao-Pretis outlier distortion test), no bias correction of the coefficients after selection and no standard errors of the break dates; the impulse and step candidates collinear with each other are dropped in order (impulses first) before the final search. Not compared with published results of R's gets.
  • Specification sensitivity: specification_grid takes equations linear in their coefficients, least-squares VARs (not Bayesian, panel or other VAR types), VECMs and local projections (not smooth ones; a state-dependent one only with a function of the fit as the quantity, since it has two responses); an equation's lags are its dependent variable's, with no lags of the regressors as a dimension (vary the controls instead) and lags chosen by select_lags on the lagged dependent variable only. Intervals are normal (estimate ± z se) wherever the fit gives a standard error, a VAR's or VECM's response only with bootstrap draws (percentile bands, no standard error); a VAR's or VECM's long-run response has no interval. There is no specification-curve inference (Simonsohn et al.'s permutation test of the curve under the null), no weighting of specifications (by information criteria or posterior probabilities, as model averaging would), no other diagnostics than Breusch-Godfrey, the portmanteau test and a VAR's stability, and no guard against information criteria compared across samples or dependent variables (the notes warn). The dialog takes Cholesky orderings, not sign restrictions or other identification objects (code takes them), and one quantity at a time.

Bootstrap and simulation

  • The random generator (set_random_generator) chooses among NumPy's bit generators (PCG64, MT19937, Philox, SFC64); none reproduces MATLAB's, Dynare's or Stata's draws, even MT19937 with the same seed (seeding and the normal transform differ). Paths through a library's np.random.RandomState (arch bootstraps, statsmodels' Markov-switching starts, scikit-learn's random_state) stay Mersenne Twister whatever is chosen; the provenance of a scikit-learn learner still names the chosen generator, which covers pymetrix's own draws (the bagging bootstrap) only. Steps of a project made before the setting existed replay with PCG64, as they were made.
  • Bootstrap bands (bootstrap=Bootstrap(...), design note) are for least-squares and restricted VARs (irf, girf, fevd, historical_decomposition), VECMs (irf only: a VECM's variance and historical decompositions have no bands), local projections (fit(..., bootstrap=)) and single equations (fit.bootstrap(...)), panel VARs (irf and historical_decomposition: "pairs" only, whole entities resampled, and only with as many instrument lags as lags, since the bootstrap rebuilds each entity from the rows the fit kept) and a VAR's conditional_forecast (one conditioned path per re-estimated VAR; percentile intervals). MS-VARs (still drawn from the estimates' asymptotic distribution), proxy SVARs (their own moving-block bootstrap) and Bayesian VARs (bands from the posterior) do not take it; nor does a single equation's forecast, whose errors="bootstrap" is the residual bootstrap of the shocks in its simulation, with the coefficients drawn from their normal approximation (see the bootstrap design note, section 9). A local projection's bootstrap is fixed-design (no recursive design from a VAR, as Montiel Olea and Plagborg-Møller's), for a single time series without instruments (no panels, no LP-IV); an equation's is for linear OLS without weights, restrictions, absorbed fe() or clustered errors (no cluster or wild-cluster bootstrap). Studentized intervals are for those regressions only (a VAR's responses would need a bootstrap inside each draw), and there are no joint (sup-t) bands. In a Monte Carlo on an AR(1) (T = 150) a local projection's 90% percentile bands cover 0.85 (wild) and 0.86 (blocks of residuals), but blocks of the data's periods (pairs) only 0.80: prefer wild or block there. Kilian's correction adjusts the lag coefficients, not the intercepts, and the point estimate stays the least-squares one. Monte Carlo coverage of 90% percentile bands on a small VAR (T = 100) is about 84%, the usual shortfall of percentile intervals in short samples.

Machine learning

  • Shrinkage and machine learning need scikit-learn ([ml]); learners give no standard errors beyond one step ahead for dynamic forecasts that feed on themselves, no classification learners, and no hyperparameter search beyond the shrinkage penalty (LightGBM and XGBoost included: no early stopping, no categorical features).
  • Conformal intervals are for static (one-step) predictions: none for dynamic multi-step forecasts, whose errors compound; the calibration periods are the end of the sample (no cross-conformal, jackknife+ or CV+); split conformal's guarantee needs exchangeability, which time series rarely have, and adaptive conformal inference (method="aci") guarantees coverage only on average over time, with the model fixed after the training periods (not refitted as outcomes arrive); a fit made with where= is estimated again on its span alone.
  • SHAP values are for FittedLearners (not shrinkage or least squares, whose contribution of x is b (x - mean x)); TreeSHAP is the path-dependent kind only (no interventional TreeSHAP with a background), and no interaction values or dependence plots.

Models: solution and estimation

  • Heterogeneous-agent models (pymetrix-ha, phases 1 and 2 of docs/design/heterogeneous-agents.md). The dialog (Model → Heterogeneous-agent model…) offers the three examples only: a model of the user's own blocks is code, and is not saved and replayed in a project. A step cannot be cancelled while the library solves, and reports no progress from inside it. The DAG is not drawn. Not yet built:
  • moments, simulation and variance decompositions from the MA representation (deferred from phase 2);
  • distributional responses along a nonlinear transition (they are first order), and the intertemporal MPCs;
  • estimation: the likelihood, missing data, mcmc, recovery checks (phase 3);
  • model text for the aggregate equations, and transitions on dated data as scenarios (phase 4). Responses are first order in aggregate shocks; transitions are nonlinear but perfect foresight. There is no aggregate risk beyond first order, no occasionally binding aggregate constraint, and no estimation of household parameters by MCMC. Continuous-time and life-cycle models are not covered. The representative-agent check against the Kalman likelihood waits for phase 3. numba's threads are not yet set to match set_blas_threads. The HANK notebooks' own grids take a minute (the two-asset model's Jacobians several seconds each); their checks run only with PYMETRIX_HA_NOTEBOOKS=1.
  • Stochastic simulation draws equation errors (and optionally coefficients) for backward-looking models, and shocks for first-order solutions; not yet: nonlinear models with expectations (perfect foresight is one path), or targets with first-order draws.
  • Trending models: steady states with growth use additive trends; variables in levels growing by a factor are handled by writing them in logs (model.in_logs). Second-order solutions of growing models are not available.
  • Fixes and holds in some periods (Scenario(partial=...)): perfect foresight takes partial fixes but not partial holds, and solves them with the interpreted stacked system (slower for a large model); optimal control takes neither. Solution.convergence is the deterministic solution's: a stochastic simulation's draws report only how many failed. A period that does not converge still stops the solve (the error carries the table).
  • Solver options (convergence=, line_search=, refresh=, Fallback, ordering="blocks") are for the period-by-period solvers. Perfect foresight keeps its own residual test and line search, and the draws of a stochastic simulation are solved by Newton with the residual test, whatever the solver (its tol and max_iter only). ordering="blocks" is refused with links between entities and with regimes. A recursive equation is solved once only when it is linear in its own variable; one that is not (log(q) = ...) is iterated on as a block of one. With blocks the convergence table's residual is the largest left in the blocks iterated on, not recomputed for the equations solved once. The Solve dialog's Fallback is one fixed sequence (damped Gauss-Seidel, then Newton with a line search); other sequences are written in code. In wall time ordering="blocks" is not faster on every model: each equation solved once is a call of its own, so on a model of a couple of hundred compiled equations a joint Newton solve takes about as long, though it evaluates several times as many equations (benchmarks/solve_options.py: on its generated model, 0.19 s against 0.15 s at 200 equations, 0.69 s against 1.03 s at 600, on one busy machine).
  • Solve timing (Solution.convergence.attrs["seconds"]) is recorded by the period-by-period solvers only, not by perfect foresight or a first-order solution, nor for each draw of a stochastic simulation. It is metadata of the table: a .pymxr file keeps the table without it, and table operations that drop pandas attrs drop it.
  • Model solving handles backward- and forward-looking models (first-order perturbation, Blanchard-Kahn), Dynare .mod import and IRIS .model import (&x and !dtrends parameters are held at the values read, not estimated). This is the youngest part of the package compared with IRIS or Dynare.
  • Occasionally binding constraints (OccBin): simulation, the OccBin filter and its smoother iterated on the smoothed path, estimation with it, forecasts and posterior forecasts that respect the constraints, targets held by anticipated free shocks, and shock decompositions with the regimes held at the smoothed ones, all with correlated shocks and known-date regimes too. Moments still use the linear solution. OccBin forecasts hold targets only with anticipated shocks, without draws, and with only regimes known in advance (a surprise regime would need the targets solved again when it starts).
  • Regimes with known dates (Regime) need a model without growth trends. A model estimated with regimes has moments and variance decompositions one regime at a time (each held for good at its own steady state); its identification check uses the moments of every period of the sample through the regimes. Dynare and IRIS model files have no place for regimes (pymetrix's model text has).
  • Second-order solutions are estimated with the particle filter (bootstrap or guided; maximum likelihood or posterior mode with common random numbers, then particle marginal Metropolis-Hastings). The fit's smoothed comes from the particle smoother (backward simulation in the shocks, smooth_paths paths), whose cost grows with the square of the sample's length (about smooth_paths x candidates x T^2/2 particle steps: seconds for 100 periods, minutes for several hundred) and whose error, at the default 100 paths and 200 candidates a period, is about a tenth of a smoothed standard deviation (more where the smoothed distribution has several modes). Not built: a forward-backward marginal smoother, smoothed quantiles weighted beyond the paths drawn, an auxiliary particle filter, SMC squared (fit.smc refuses a particle-filter likelihood, as does NUTS, which needs exact gradients). The standard errors come from a Hessian of a noisy likelihood (approximate); the filter needs a measurement error for every observed series, starts from the stationary distribution (no diffuse start, no growth trends), and runs in one process; forecasts, moments, decompositions and identification of such a fit use its first-order solution. Second-order impulse responses shock one shock at a time, not orthogonalised.
  • Third-order solutions (solve(order=3)) are solved, simulated (pruned or not), and give responses and moments by simulation, but are not estimated: estimate(order=3) is refused (the particle filter follows second-order rules only). Not built: the closed-form variance and autocovariances of the pruned process (Andreasen et al.; Dynare has them), orders above three, skewed shocks (the shocks are taken to be symmetric, so ghsss is zero), growth models (write them in ratios). The solver keeps full, unfolded tensors in the states, shocks and the scale of uncertainty, so time and memory grow with the cube of their number or faster: a fraction of a second for the growth models in the tests, about 15 seconds for 22 states and 7 shocks (Dynare's k-order solver, with folded tensors, is much faster there), too slow for hundreds of states.
  • The diffuse log likelihood's convention (diffuse_terms): "exclude" covers the state-space models, unobserved components and the Kalman likelihood of linearised models, not the OccBin filter, known-date regimes or the particle filter (refused). With correlated measurement errors the native engine (statsmodels absent) uses the approximately diffuse filter, which already leaves out its first periods: there the two conventions coincide; likewise with presample on the native engine. The SARIMA estimator is statsmodels' SARIMAX and keeps its likelihood (approximately diffuse, the first d periods left out, "exclude"'s convention) with no option.
  • Estimation of linearised models: maximum likelihood, posterior mode, random-walk Metropolis-Hastings, sequential Monte Carlo and the No-U-Turn sampler (mcmc(sampler="nuts"), chains in parallel processes with workers), with Iskrev identification checks.
  • The gradient of the Kalman-filter likelihood is analytic (pymetrix.models.kalman_score: the steady state, the solution and the filter differentiated exactly) for the mode search, the Hessian and NUTS, but not with known-date regimes, the OccBin filter, a DSGE-VAR's likelihood, diffuse starts (unit roots), balanced-growth models or equations that cannot be compiled: there NUTS and the optimiser use central differences (2k + 1 likelihood evaluations a gradient, so NUTS is slow on medium and large models). The analytic gradient costs about two log posteriors on a small model (the New Keynesian template, 7 parameters) and three to six on Smets and Wouters (2007) (36 parameters). Its filter's loops over periods run in Python unless numba is installed (pip install pymetrix[fast], which compiles them and the plain likelihood's filter, about ten seconds once on first use): about twice as fast on the template, a fifth faster for the gradient and twice for the log posterior on Smets and Wouters, where the batched products over 230 variance states, the solution's derivative and building the model remain. Not done: the Chandrasekhar recursions (no gain measured here). Not built: second derivatives (the Hessian is a difference of gradients).
  • NUTS with the dense mass matrix (the models' default) beats random-walk Metropolis-Hastings per effective draw a second on both models measured: on the template 10.5 against 4.1 (smallest effective sample per second, one chain; 13.1 against 7.1 with four chains in parallel), on Smets and Wouters 0.023 against 0.005 (one chain of 1,000 draws after 500 warmup against Metropolis-Hastings for the same time, on a loaded machine; mean tree depth 5, 33 gradients a draw), and there NUTS's posterior means matched Dynare's long run within 0.14 posterior s.d. where Metropolis-Hastings's were off by up to 0.64. Four parallel chains were measured on the template only (Smets and Wouters would have held the shared machine's four cores for an hour). Smets and Wouters still mixes slowly in a few parameters (smallest effective sample 78 of 1,000 draws), and its dense metric, estimated from the 200 draws of the last warmup window for 36 parameters, is noisy (a longer warmup should help; not measured). metric="mode" (the inverse Hessian at the mode kept, no metric adaptation) is fastest on the near-Gaussian template (16 a second, 150 warmup draws) but poor on Smets and Wouters (smallest effective sample 5 of 1,000), where the curvature at the mode misstates some parameters' spread. No Riemannian (position-dependent) metric, so funnels and posteriors whose scale changes across the support still cost divergences or deep trees. On the template about one draw in ten ends a trajectory at the edge of determinacy (counted as a divergence; the posterior there is zero, and the means agree with Metropolis-Hastings's). Not built: slice sampling.
  • Forecasts from a posterior draw measurement errors only when asked (measurement_errors=True, off by default so earlier results stay as they were), and not with OccBin.
  • DSGE-VAR(lambda) (dsge_var): stationary observables only (no unit roots, no cointegration or trends in the prior), a constant as the only deterministic term, no exogenous variables, complete data (missing values only at the ends of the sample); lambda-hat's marginal data density is the Laplace approximation at each lambda's mode (not a Metropolis-Hastings run per lambda, as DSSW 2007 report); the model's rotation needs as many shocks as observables; variance decompositions only at the posterior mean given the mode (no bands); no sequential Monte Carlo, no conditional forecasts, no historical decompositions for it; not compared with Dynare's dsge_var output (none is recorded in the tests). Dynare's dsge_var option is used by DynareModel.dsge_var(), not by estimate().
  • Global sensitivity analysis covers the prior stability mapping only (determinacy classes and Smirnov tests), from random draws, not Dynare's Sobol sequence (Dynare's own draws are classified as Dynare classifies them: see the validation page). Not done: Morris elementary effects, the reduced-form and RMSE mappings (redform, rmse), the posterior stability mapping, the correlation analysis of the parameters within each class, and Dynare's prior_range and lik_only options.
  • Model files and other syntaxes. Dynare files: prior_trunc bounds the parameters only when the file gives it (Dynare's default, 1e-10, is not applied); a shifted inv_gamma2_pdf keeps the mean given, where Dynare 6.0 takes its scale from the mean before the shift (see the help on Dynare files); weibull_pdf is not read; correlations of measurement errors are not written back by export_model, and the particle filter refuses them; @#line is accepted but messages keep the model file's lines. IRIS's correlations of measurement shocks are not read. Writing models in other syntaxes (export_model): Dynare's estimation blocks and commands, comments and IRIS's loops do not carry across, estimated equations must have named coefficients, IRIS models cannot have deterministic exogenous variables, and measurement transforms are written only in pymetrix's syntax (reported series in pymetrix's and IRIS's). The model editor reads pymetrix's syntax, Dynare's, IRIS's and EViews's; not TROLL's.
  • EViews's syntax is a subset, confirmed against Brillet's Structural Econometric Modelling (EViews) and the FRB/US packages, without EViews itself (the book's programs are copyright and not in the repository, so those tests run only with PYMETRIX_BRILLET set to a folder with one's own copies; CI does not run them): EViews's programming language (loops, if, !/% variables, {%s} substitution, subroutines), moving variances and standard deviations, and/or, @elem at a date without its frequency, @pchy-like functions when the frequency is not known, -a^b and a^b^c, estimation methods other than least squares (and ARMA terms in specifications), @add(v) where the variable is not alone on the left, and add factors or innovations on equations fitted from data are refused at their place. Linked equations are read only with their specification in the same text. A state-space object maps to StateSpace only without regressions in its signals (data with estimated coefficients), covariances of errors, or variances other than a coefficient squared or a number; FRB/US's supply-side estimation_code.prg reads only in part for those reasons. EViews's own estimates and solves are not run or compared against: the checks are against pymetrix's own equations and the FRB/US package's Python versions and baseline.
  • The FRB/US worked example runs the Fed's example1.prg to example4.prg, the federal-purchases ping and policy-rule switches. The zero bound and thresholds (example3.prg) are solved under VAR expectations only, as the program does; with model-consistent expectations the max would be a kink in the stacked system, which is not tried. The thresholds' logistic switches are smooth (slope 25), so the switch leaks slightly before a threshold is crossed (0.003 the quarter before, in example3.prg). Stochastic simulations (stochsim.prg) and optimal control (ocpolicy.prg) run under VAR expectations only: optimal_control takes backward-looking models (its derivatives come from the period-by-period Jacobians, not the stacked perfect-foresight system), imposes no bounds (the program's zero-lower-bound penalty is left out; add a penalty variable to the loss if needed), and has no time-consistent (opttc) variant; stochastic simulation of a model with leads needs its first-order solution. It does not cover the Fed's MCE algorithms themselves (quasi-Newton, the terminal option for permanent shocks). Model-consistent simulations take their terminal values from LONGBASE (or a terminal rule): permanent shocks need terminal values chosen by the user. The FRB/US packages are not in the repository, so those checks run only where PYMETRIX_FRBUS and PYMETRIX_FRBUS_DATA point at them.
  • Simulation plans: least-norm plans and soft holds are for first-order solutions only; the nonlinear solvers hold targets exactly, one free variable per hold.
  • Models solved per entity (Model(..., over="country")) solve each entity on its own, or jointly through links (foreign variables, world aggregates) with weights fixed over time; draws of linked entities are for backward-looking models, without coefficient draws or GARCH errors; not yet: time-varying weights, and checks, steady states and first-order solutions of the linked model as a whole (they are for one time series).
  • Results that look wrong but are not. Two outputs of the modelling demos surprise people:
  • Data contributions with no measurement errors: a variable observed as it is (in the New Keynesian template, inflation through "infl" and the policy rate through "rate") is known exactly, so its smoothed value comes from its own series alone, and output, observed through its growth, leans almost entirely on "growth". The series share the work only when the measurement equations have errors (checked against the smoothed-state weights calculated directly).
  • Parameter sweeps where the lines overlap: in the New Keynesian template (serially uncorrelated shocks, a smoothed policy rule, a flat Phillips curve) output's response to a demand shock changes by under 1% between phi_pi = 1.2 and 3, while its response to a cost-push shock doubles (the panel the demo now opens on). table() shows the differences; sweep(..., response=, shock=) or plot(response, shock) draws another pair.

Fiscal (plugin)

  • Debt sustainability analysis (pymetrix-fiscal, phase 1 of docs/design/debt-sustainability.md): the deterministic DSA only. Not yet built:
  • the LIC DSF module (the 2018 guidance note: composite indicator, thresholds, PVs at 5 per cent, its stress tests and mechanical signals), phase 3a, next;
  • the stochastic DSA (fan charts from normal or bootstrapped shocks, VARs, a model's draws; reaction functions), phase 2;
  • the MAC SRDSF's medium-term module (fan chart, DFI, GFI, MTI), phase 3b. Its near-term logit and the fan chart's realism adjustment are not planned: they need data only the IMF has.
  • The 2013 MAC DSA's macro-fiscal stress tests (its Table 3) are not a preset. Their sizes need judgement (the planned adjustment, the overvaluation), and their interactions run through new borrowing's rates, which phase 1 does not model. Build them from Shock and Custom.
  • Effective interest rates are inputs. The plugin does not derive them from the terms and maturities of new borrowing, and amortisation is an input too (no amortisation schedule from loan-level data). Short-term debt is taken as all falling due within the year, in the debt's own currency mix. Annual data only.
  • Data readers. One documented CSV or Excel layout. There are no readers for debt-office systems' exports (Meridian, DMFAS), and no DSA.to_model() yet to write the identity into a pymetrix Model.
  • The dialogs take the assumptions from a dataset's projection years or the history's averages. There is no editable grid of assumptions and no dialog for a forecast round (Assumptions.from_round is code).

Finance (plugin)

  • Black-Litterman (finance plugin): views are given as variances (omega) or left to He and Litterman's default; no Idzorek percentage confidences, no views on factors or relative views with uncertain weights. The optimal weights are the unconstrained mean-variance ones; for constraints give the posterior mean to optimize_portfolio.
  • Copulas (finance plugin): BB1, BB6, BB7, BB8, Tawn's and the rotated copulas are for two series (in a vine, for each pair); a vine's pair copulas are the plugin's bivariate families (no nonparametric pair copulas), its standard errors are each pair's with its inputs taken as known, and its goodness-of-fit bootstrap refits the parameters but does not repeat the selection of structure and families. Time-varying copulas: Patton's recursion for two series, the DCC Gaussian and t copula for several (no time-varying vines, no asymmetric DCC copula, no DCC for the Archimedean families); Patton's tail recursions are often weakly identified. IFM standard errors ignore the margins' estimation (no Godambe sandwich; joint maximum likelihood gives the full ones, without GARCH), and the DCC copula's treat Qbar as known; the t copula's correlations come from Kendall's tau and have no standard errors except under joint estimation. The goodness-of-fit tests are the Cramer-von Mises one on the empirical copula (parametric or multiplier bootstrap; the multiplier not for the t copula, nor with Kendall's tau for more than two series, and conservative in small samples: 1.5% rejections at 5% for Gumbel with 200 observations) and, for vines, the Rosenblatt-transform ECP2 one (not the Kendall-process, White or Breymann tests); in more than two dimensions the Gaussian and t CDFs are by quasi-Monte Carlo (about 1e-5). With garch=True the margins' GARCH(1,1) has normal or t errors: skewed-t margins are fitted to its standardised residuals afterwards, not estimated with the GARCH, though GARCH(dist="skewt") itself is available for single equations.

Reports and figures

  • Reports write Word, Excel, HTML and Markdown, but not PowerPoint or PDF. Charts are images. There are five built-in themes and three templates; custom templates are a list of view titles written in code, and there is no template editor or institutional branding (logos, fonts shipped with the report).

App and dialogs

  • Calculation: steps run one at a time; within a step, only some calculations use other processes (workers=: parameter sweeps and scenario lists, specification grids, bootstrap draws, nowcast backtests, Monte Carlo experiments, stochastic simulation and MCMC chains). Typed code that writes reports cannot be checked for out-of-date inputs.
  • Provenance (with a data fingerprint, the rows actually used and why others were not, and the backend that did the numbers) is recorded for every result estimated from data, and for tests on data; backtests, combinations, rolling and recursive fits and quantile processes gather their fits' (a report's appendix gives a backtest's origins and the estimation samples of its first and last re-estimates). A rolling fit's data fingerprint is left blank (no one window holds every row); a recursive fit's is its last window's. Bands made from an estimate (bootstrapped impulse responses and variance decompositions, generalised impulse responses, proxy SVARs, panel VAR historical decompositions, nowcast densities and quantile nowcasts) carry the estimate's provenance with the band's method; so do historical and shock decompositions (with or without bands), structural and heteroskedasticity identifications, conformal intervals, SHAP values, nowcast news, specification grids and duration curves. Results computed from a model alone (solutions and steady states, moments, OccBin paths, optimal policy and simple rules, sweeps, calibration, stability mapping, identification without data) record the model's equations and parameter values and the method, with no sample or fingerprint; a solution's and a steady state's is worked out when first asked for, not stored, since they are made at every trial value of an estimation. Results from numbers given directly (an option's value, a CDS curve, minimum distance) record those numbers the same way. Impulse responses and variance decompositions without bands still have none, and a collection of results (Results) has none of its own (each member has its own).
  • Saving a single result (save_result, File → Save result…) keeps its views, summary and provenance, not the live object: a saved result cannot be forecast from or estimated again (its project can). Its call is kept only for a result a session step made (a dialog, or typed code recorded as calls): a result made in a plain script, or by typed code kept as code, has none unless one is given (save_result(..., call=...)). The call names the datasets it read; it does not carry them, so making the result again needs the same data.
  • Programs that read and write projects use a public interface that is provisional before 1.0 (Call, make_call, the codec's encode and decode, Session.attachments): no stability policy has been decided, so its names and details may change before 1.0 (saved projects keep opening, through their migrations).
  • Deferred steps (Session.add(cmd, deferred=True)) keep the objects they read, as at their place, until computed, so a replaced dataset or model stays in memory while a step that uses it is pending. Computing one puts its result in the workspace under its name even when a later step has made that name since. A project saved by 0.1.0a16 or earlier whose deferred step uses a step marked dead runs that step again on opening: the result's name is looked for as a word in the deferred step's saved fields (its code, for typed code), so a dead step whose name merely appears there is run again too.
  • The commit in provenance (provenance.build) is read from git when pymetrix runs from a checkout of its source; an installed package records its version only (wheels do not carry their commit), and plugins record their versions only. dirty covers tracked files under the package folder, not files git does not track.
  • Trust: a project's typed code runs only once you trust it. Trust can be withdrawn in code (pymetrix.trust.forget), but the app has no list of trusted projects to review, and projects are not signed.
  • Tested automatically without a screen on Windows, macOS and Linux, but with little hands-on use beyond the developer's own, mostly on Windows.
  • On a Mac: dialogs' fields have no Alt (Option) access keys, as in every Mac app (Qt turns them off there by design): Tab moves between the fields, and Space opens or folds the Advanced settings header once Tab reaches it. With macOS's Keyboard navigation off (System Settings → Keyboard), Tab stops only at text boxes and lists, not at pop-up menus, check boxes or that header; turn it on to reach every control from the keyboard. Message boxes have no title on a Mac, so where the title says what failed it is the first line of the text instead. The help topics, written for every platform, say Ctrl for keys that are ⌘ on a Mac (the app's tooltips and Help → Keyboard shortcuts give the Mac's keys).
  • BLAS threads on a Mac. NumPy and SciPy use Apple's Accelerate there, which takes no thread count: pymetrix's limit (set_blas_threads) makes it single-threaded for a limit of one, and leaves it to choose for more. That switch arrived in macOS 15; before it, the limit does nothing on Accelerate.
  • Dialogs on the main demo path (load data, estimate, test, model, forecast, report, project) are the most used. Others work but have had less polish.
  • Pivot tables are commands, not an interactive drag-and-drop grid.
  • Exercise packs (provisional): a check compares one value (a number within a tolerance, a string, true or false); there are no checks of a whole table, a range, a sign alone, or "any of", and none that depend on another check. The Exercise panel does not tick steps as the history changes (press Check), remembers no progress between sessions, and has no Run button for a step's code (Copy it into the Immediate window). The app runs nothing in a pack, so solution.py is only exercised by pymetrix-exercises check. A plugin's pack must be a folder on disk (not inside a zipped install). A pack's CSV files need a [data.<name>] table naming their time or entity column. A step's code that reads a pack's file (PACK_DIR) runs as written only from the CLI: the Immediate window has no PACK_DIR. Models are imported by the user (Import…), never on start; EViews programs and FRB/US XML are not among a pack's model files. Packs are not translated, and the exercise folder's number orders exercises only within a pack.
  • How do I… task pages: the fifteen planned and three more are written (docs/how-do-i/README.md lists the eighteen). Results windows' Next ▸ menus and the dialogs' help pages link to them. The connector page's code is tested against recorded responses only, not the providers themselves; the EViews translation page cannot show its bundle route running (the export program is untested in EViews), and its code runs only where pymetrix-eviews is installed.
  • The front window's accent title bar is checked automatically with the Fusion and Windows styles only; on the windowsvista and windows11 styles (Windows' own) it is painted the same way but has been looked at by hand less. Status colours and muted text are picked when a widget is made, so switching the system between light and dark while the app runs leaves them as they were until the window is reopened (the title bars follow at once).
  • Charts under a dark palette turn neutral dark greys light, including a dark grey a user chose for a line or note; the saved file keeps the colour chosen. A chart already open keeps its colours when the system switches between light and dark until it is drawn again.

Programs, plugins and translators

  • EViews workfiles (.wf1) and EViews databases are not read: save the series as Excel or CSV and load those (the Coming from EViews help page says so). The pymetrix-eviews plugin reads a bundle that its export program writes from EViews, but that program has never been run in EViews (the project has no licence; every point to check is marked (verify) in it), so it is experimental and CSV or Excel stays the supported way in. Its reader does not read: semi-annual, multi-year, intraday, bimonthly, fortnightly and ten-day pages with a time axis (pandas has no such periods: they read as undated, undated=True); value maps as value labels (pymetrix has none: the map is kept in Variable.extra["value_map"] and the codes stay as data); groups whose members are expressions, and samples with conditions or several pairs of ends (kept as text in meta.extra["eviews"]); and a project made with File → Import EViews workfile… reopens only with the plugin installed (Save the data as Parquet frees the script, not the project). It refits only least-squares equations without options against EViews's estimates. Running EViews through COM is not built yet. Nor are IRIS databanks saved as .mat files; one saved as CSV loads once the rows of classes and units under the names are left out (skiprows=[1, 2]), which Load data cannot do.
  • EViews programs are translated for data work, estimation, tests, models and control flow (phases 1 to 3) by pymetrix-eviews (translate_program). Left out, each line with its reason in the report: in control flow, subroutine parameters that are objects (series s, group g: string and scalar ones are translated), a local subroutine's data and estimation lines, names with $ in them (_$_x, as the FRB/US MCE library uses), a group's i-th series in an expression (g(i)), names made from an expression in braces ({!i+1}), pages and models made or changed inside a loop, an if block or a subroutine, for over several string variables at once, @log/@exp of a value known only as the program runs, @wlookup of other object types than series, @equaloption and the other program functions not listed in the guide; a subroutine's body is translated once, at its first call, on the page selected then; after a name made as the program runs, which series a page has is no longer checked; a number in a made name is written as Python writes it (2.0 for a division's result, where EViews writes 2); a while loop in steps mode stops after while_cap passes; dates known only when the program runs are passed to Sample as written (quarterly and annual EViews dates read, monthly ones do not); objects the program uses but does not make (a model an add-in reads, a database's series) are given with objects= and the bundle (the app's dialog has no field for objects=: translate in code for that); the translation panel's Run as steps runs every step of the program, from the first, into the open session (no choosing a range of lines); graphs, tables, spools, display and settings, EViews databases (fetch, store, dbopen), add-ins and user commands, external programs. Within data work: read and import (use Dataset.read), copy between pages (to_freq), page operations (pagestruct, pagedelete...), alpha series, weekly, daily, undated and semi-annual new pages, samples of several pairs of dates, conditions with lags or functions other than log, exp, abs and sqrt, groups of expressions, rename and delete with patterns, element assignment in matrices and tables, label(r) remarks, @trend, @seas and @elem in data work (eviews_series makes them only for a model), sample statistics inside a larger expression (give a scalar the statistic first), objects' data members inside a series expression (eq.@coefs(2) is translated as a scalar's value) and string, date and matrix functions (@str, @val, @word, @datestr, @rows...); @datestr without a format. Within estimation: stepls, breakls (bai_perron), threshold (ThresholdAR), switchreg (MarkovSwitching), glm and nls options; testadd (pymetrix's omitted_variables is not yet translated to); censored's extreme-value (d=x) and logistic errors (no such censored family; binary and ordered with d=x are CLogLog and OrderedCLogLog) and its limits given as series; count's other distributions; seasonal ARMA terms (sar, sma), ARMA ranges, pdl and @expand; weights (w=) and every other option not mapped (the line is left out naming it); VAR lags other than one range from 1, VEC cases e and exogenous variables; systems estimated by ls; c(i) inside a series expression; a VAR's forecast (EViews makes a model of it); hettest with its own regressors, chow with several dates. Within models: merge of an equation not estimated by least squares, or with ARMA terms; add factors on some equations only (@all is translated), addinit other than v=n; solveopt's stochastic, static and fitted solutions (s=, d=), and its other options listed in a note, not mapped (g=, z=...); the Actuals scenario; makegroup. Translated with a note, to check against EViews: White is HC1; the HAC bandwidth; the ARMA estimator (exact ML here, by version in EViews); GARCH's presample variance; GMM's weighting iterations; quantile regression's standard errors; heckit by ML; ARDL's lag search; information criteria per observation; the default solver (Newton here); add factors used in every scenario; the alias series outside the solved span holding the data. A declared scalar starts as NA and x.label without an option sets the description; both are marked to verify. In the app, the plugin's Translate EViews program dialog and translation panel (see the entry above).
  • R scripts are translated for phase 1 only by pymetrix-r (translate_r; docs/design/r-translator.md), in code and from the command line: there is no "Translate R script" dialog or R translation panel yet (section 8 of the note), and no validation workflow that runs R (r-reference.yml, R's recorded numbers, the parser compared token by token with R's getParseData): the numbers are checked against statsmodels and R's formulas written out. Left out, each line with its reason in the report:
  • control flow, functions, source(), <<-, assign/get and names made as the script runs (phase 3);
  • joins (left_join, merge, bind_rows: core has no join), pivot_*, distinct, slice, count, n() outside a grouped mutate, transmute, across() and select helpers (starts_with), data.table, purrr, R Markdown;
  • summarise with more than one group, of an expression, or after a filter; a filter after group_by; a group-wise statistic, lag or cumsum after a filter;
  • text in series' formulas (g == "a" works only in a filter), text functions (paste, gsub), diff(x) not padded, %%, random draws, as.factor inside a series;
  • in formulas: ., poly, ns, bs, offset, interactions with factors (factor(g):x), cbind responses, terms taken out (- x);
  • glm families other than binomial (logit, probit), poisson and gaussian, MASS::glm.nb; ivreg and feols's IV part; feols combined fixed effects (a^b), feglm, fepois, and summary(m, vcov = ...); plm's random-effects time and twoway effects, its vcovHC (Arellano's, without G/(G-1): pymetrix's Cluster adjusts);
  • sandwich's covariances of models other than lm, vcovHC types HC4 and HC5, NeweyWest without lag = and prewhite = FALSE, vcovHAC, kernHAC, vcovPL; car::linearHypothesis, waldtest, dwtest, resettest; AIC, BIC, logLik, coef, residuals and the other values read from results;
  • pp.test, ur.pp, ur.ers, ur.za, ca.jo; forecast's Arima, auto.arima, ets and forecast(); VAR's exogen, season and type = "trend"; causality, serial.test, normality.test, arch.test, SVAR; zoo and xts, ts() with frequencies other than 1, 4 and 12, and ts() of data not read from a file;
  • readRDS, load, data() (write the data as Parquet or CSV in R), SPSS and SAS files; writing data out. Translated with a note, to check against R: a filter is a sample (rows kept); factor(g) sorts levels as text; round to even; summaries without na.rm = TRUE; dplyr's lag by row order; the feols covariance without vcov= (by the fixest version, fixest_vcov=) and its small-sample K (pinned in the tests); plm's random and first-difference models; tseries' table p-values; urca's lag search from 1; vars' bootstrap bands and its criteria's constants; glm probit's standard errors (expected against observed information); .dta value labels not read. A file without an identifying column needs read_options.
  • EViews expression functions pymetrix's expressions lack (the audit of phase 1): @date (each observation's date number: use @year, @quarter, @month, @day), @trend, @seas and @elem in data work (eviews_series makes them for a model), @obssmpl inside a series' formula (it is translated as a scalar's value), @strdate (an alpha series), and the by-group statistics grouped by an expression (@sumsby(x, g(-1)): make the group series first). The translator leaves a line that uses one out, naming it. Translated with a difference: @cumsum and the by-group statistics are computed over all the page's rows (EViews: the current sample; the report says so under a smpl); @obsnum counts within each cross-section (EViews's counts a panel's rows straight through); random draws are pymetrix's own, seeded from rndseed, never EViews's numbers, and inside a loop every pass draws the same ones. In pymetrix's own formulas, the calendar functions and random draws cannot be lagged or differenced (d(year())): make them a series first.