EconStatsCraft rigorous, plain-spoken econometrics
Econometrics that explains itself.
Regression, panel data, time series and the whole battery of tests. Every result is followed by a verdict you can defend.
Load a dataset to see it here.
EconStatsCraft › Multinomial logit
For a categorical outcome with three or more options that have no natural order - occupation, travel mode, brand. Reports one equation per category against a base, relative risk ratios, and the average marginal effect on each probability.
When the outcome is a choice among unordered alternatives - bus, car, train - there is no latent scale to cut up, because there is no sense in which train is "more" than bus. Multinomial logit instead gives each alternative its own utility index and lets the probabilities be the softmax of them. One alternative must be the reference, because only differences in utility are identified: adding a constant to every alternative changes nothing anyone chooses.
The outcome is categorical with three or more values and ranking them would be meaningless. If they can be ranked, an ordered model is more parsimonious and more powerful.
With J alternatives and a base category J, P(y_i=j\mid x)=\frac{\exp(x_i'\beta_j)}{1+\sum_{k=1}^{J-1}\exp(x_i'\beta_k)},\qquad \beta_J\equiv0. The normalisation \beta_J=0 is what makes the model identified rather than an arbitrary choice of convenience. Taking logs of the ratio of any two probabilities gives \ln\frac{P_j}{P_k}=x'(\beta_j-\beta_k), which depends on j and k ALONE - no other alternative appears. That is independence of irrelevant alternatives, and it is a consequence of the functional form rather than an extra assumption bolted on.
P(y=j\mid \mathbf{x})=\frac{\exp(\mathbf{x}^{\prime}\boldsymbol{\beta}_{j})}{1+\sum_{k=2}^{J}\exp(\mathbf{x}^{\prime}\boldsymbol{\beta}_{k})},\qquad \boldsymbol{\beta}_{1}=\mathbf{0}
Occupation for 900 people - Clerical (371), Manual (228) and Professional (301) - with Clerical as the base, so every coefficient is read against it. The model is jointly significant (LR χ² = 175.33 on the intercept-only model, p < 0.0001) but explains a modest share of the variation: McFadden's pseudo-R² is 0.0902, which for a three-way choice is ordinary and is NOT comparable to an R² from a regression. Now consider what independence of irrelevant alternatives asserts here: the odds of Manual against Professional are fixed by their own coefficients, regardless of whether Clerical is available at all. If Clerical and Manual are close substitutes while Professional is quite different - which is exactly what these three categories look like - that is false. No amount of data will reveal it from inside the model, because the restriction lives in the functional form rather than in the estimates, and this is the reason the nested and mixed logits exist.
| If you see this | It means | Do this |
|---|---|---|
| Coefficients flipping when the base changes | Correct and expected | Report marginal effects, which do not |
| Hausman-McFadden statistic negative | A small-sample artefact | Uninformative, not a pass |
| Two alternatives that are near-substitutes | IIA will fail on exactly this pair | Use nested logit with them in one nest |
| One alternative chosen by very few | Its coefficients are barely identified | Consider merging it |
| Perfect prediction for a category | Separation | A regressor determines the outcome; drop it or use a penalty |
| Marginal effect sign opposing the coefficient | Normal, via the denominator | Not an error |
Ordered logit, when the alternatives do have an order. Conjoint analysis, which is this model applied to a designed experiment.
Multiple regression (OLS) · Logit / Probit · Tobit (censored) · Truncated regression · Ordered logit / probit · Quantile regression · Poisson / Negative binomial
Line chart · Area chart · Bar chart · Stacked bar · Scatter plot · Bubble chart · Histogram · Box plot · Pie chart · Heat map · Rebased to 100 · Lorenz curve and Gini
World map · Bivariate map · Flow map · India - state map · India - district map
Descriptive statistics · Summary by group · Two-way table · Classical statistical tests
Multiple regression (OLS) · Logit / Probit · Tobit (censored) · Truncated regression · Multinomial logit · Ordered logit / probit · Quantile regression · Poisson / Negative binomial
Time-varying coefficients (Kalman) · Unit root tests · Correlogram (ACF / PACF) · ARIMA / SARIMA · Rolling-origin cross-validation · Theta method · Unobserved components · STL forecasting · Forecast combination · Markov regime switching · Change frequency (resample) · ARCH / GARCH volatility · Decompose & filter · Spectral analysis · Exponential smoothing · Forecast accuracy
Yield curve (Nelson–Siegel / Svensson) · Dynamic factor model · Dynamic regression (ARIMAX) · Structural VAR · VAR · Granger causality · Cointegration · VECM · ARDL & bounds test
Panel regression · Panel cointegration tests · Heterogeneous panel: Mean Group & PMG · Gravity model of trade · Dynamic panel GMM · Panel diagnostics · Panel unit-root tests
Principal components (PCA) · Factor analysis · Cluster analysis
Conjoint analysis · MaxDiff (best–worst scaling) · TURF - reach of a product line · Price sensitivity (Van Westendorp) · Market basket analysis · Perceptual map · Scale reliability (Cronbach’s alpha) · Key driver analysis
Spatial autocorrelation · Spatial regression · Heckman selection · Instrumental variables (2SLS) · Difference-in-differences · Staggered difference-in-differences · Regression discontinuity · Matching & weighting · Oaxaca–Blinder decomposition
Black–Scholes option pricing · Bond price, duration & convexity · Merton distance to default · EMI / home loan planner · CAPM / beta estimation · Multi-factor model · Portfolio optimization · Value at Risk & Expected Shortfall · Performance & drawdown · Time value of money & NPV/IRR · Equity valuation (DDM, FCF, residual income) · Cost of capital (WACC) · Binomial option pricing · Option strategies (payoff & profit) · Forwards, futures & swaps · Credit risk & Basel capital · Extreme value theory (tail risk)
Life table · Life annuity · Life insurance pricing · Chain ladder reserving · Buhlmann credibility · Survival analysis · Mortality graduation · Aggregate loss model · Ruin probability · Multi-state Markov model · Loss severity fitting
Monte Carlo experiment · F-test, Wald & Chow · Structural breaks & stability
Regression vs machine learning · Ridge / Lasso / Elastic Net · Random forest · Gradient boosting
EconStatsCraft rigorous, plain-spoken econometrics
Regression, panel data, time series and the whole battery of tests. Every result is followed by a verdict you can defend.
Load a dataset to see it here.
Pick the example closest to your question. You get a spreadsheet with the right columns and a few rows showing the expected format - replace the numbers with your own, then paste or upload it back.
Copy the header row from the table above (or from the downloaded template), put your own rows underneath, and paste the whole thing here. It is checked against the layout before anything is imported.
Or click a row in the preview below.
For a units or notes row.
Search every source at once. World Bank indicators need countries and years; everything else loads in one click.
Loading the catalogue…
The engine stays loaded, so this is quick - and it leaves your open tab and panel layout alone.
⌘/Ctrl+Enter runs the current analysis. ⌘/Ctrl+P exports the session as a PDF. Esc closes this.
In the Notebook: Enter starts a new block and
Shift+Enter a new line inside one; Backspace at the start
joins back into the paragraph above; / on an empty line inserts anything.
⌘/Ctrl+B, I, E, H and
M apply bold, italic, code, highlight and maths.
#, ##, -, 1., > and
``` at the start of a line convert it.
Sign in to run unlimited analyses.
Scroll to pan · Esc to close