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 › Tobit (censored)
For an outcome that cannot go past a limit, so values bunch up at it - hours worked at zero, spending at zero, a top-coded wage. OLS treats the pile-up as genuine low values and is biased towards zero; Tobit models the censoring and reports both the latent and the observed effect.
Some outcomes pile up at a limit. Hours worked cannot go below zero, and a third of your sample sits exactly at zero - not because those people wanted exactly zero hours, but because the value they wanted was negative and reality clipped it. OLS treats those zeros as genuine observations of the outcome, which flattens the fitted line towards the floor. Tobit says the zeros are censored reports of a latent variable and estimates the line that variable actually follows.
A histogram of the outcome shows a spike at one end and a smooth distribution above it. That spike is a corner solution, not a cluster of genuinely tiny values.
Posit a latent y_i^=x_i'\beta+u_i with u_i\sim N(0,\sigma^2), observed as y_i=\max(0,y_i^). Each observation contributes to the likelihood differently: an uncensored one contributes the density, a censored one contributes the whole probability mass below the limit. \ln L=\sum_{y_i>0}\left[-\ln\sigma+\ln\phi\!\left(\tfrac{y_i-x_i'\beta}{\sigma}\right)\right]+\sum_{y_i=0}\ln\Phi\!\left(-\tfrac{x_i'\beta}{\sigma}\right). Note that \sigma appears in the censored term, so unlike OLS the scale is not a nuisance parameter that separates out - \beta and \sigma must be estimated jointly, which is why a two-step fix does not work.
y^{*}=\mathbf{x}^{\prime}\boldsymbol{\beta}+\varepsilon,\qquad y=\max(y^{*},L),\qquad \frac{\partial E[y\mid \mathbf{x}]}{\partial x_{j}}=\beta_{j}\,\Phi\!\left(\frac{\mathbf{x}^{\prime}\boldsymbol{\beta}-L}{\sigma}\right)
Annual hours worked for 900 women, of whom 338 - 37.6% - report zero. Tobit puts the effect of a year of schooling on the LATENT outcome at 82.37 hours (SE 10.59), while OLS on the same data returns 53.27, an error of -35.3%. Experience is understated by 40.1%, children by 48.1% and husband's income by 41.6%: censoring flattens every slope, and it flattens them all in the same direction. The resolution of the apparent paradox is in the third table. The Tobit effect on the OBSERVED outcome - what actually changes in the data, averaged over women who may stay at zero - is 52.60 for schooling, almost exactly what OLS reported. OLS was not estimating the latent slope badly; it was estimating a different quantity correctly. Which of the two you want depends on the question: 82 hours is the answer for a woman already in work, 53 is the answer for the population including those who will not enter at all.
| If you see this | It means | Do this |
|---|---|---|
| Almost nothing censored | Tobit and OLS will agree | Use OLS; the extra assumptions buy nothing |
| Most of the sample at the limit | Very little information about the slope | Estimates will be imprecise and fragile |
| Tobit coefficient far above OLS | Expected. They measure different things | Report the marginal effect, not the raw coefficient |
| Residuals heteroskedastic | Tobit is inconsistent, not just inefficient | Model the variance or use a semiparametric estimator |
| Participation and amount driven by different variables | The single-index restriction is false | Use a hurdle model and test the restriction |
| Predicted values below the limit | Those are latent predictions | Truncate them before comparing with data |
Truncated regression, where the censored observations are missing entirely rather than recorded at a limit. Heckman selection, when the selection is into the sample rather than at a limit.
Multiple regression (OLS) · Logit / Probit · Truncated regression · Multinomial logit · 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