FreeStatisticalTools.com
Econometrics and time series

OLS with Robust Standard Errors and Diagnostics

Run an econometric OLS regression and choose the standard errors your field expects: heteroskedasticity-robust, clustered or Newey-West. A full battery of specification tests checks heteroskedasticity, functional form, autocorrelation, normality and multicollinearity.

Free · No sign-upReplaces Stata · EViewsWorks with your data
Updated · By Bibin Xavier

Data 500 × 11

Paste from Excel, or drop a CSV, TSV or Excel file here.
Example data 500 rows, 11 variables. Data stays in this browser tab.
IDnumericLog_WagenumericEducationnumericExperiencenumericFemalenumeric · codedUnionnumeric · codedDistance_CollegenumericFather_EducnumericEmployednumeric · codedDoctor_VisitsnumericAgenumeric
12.47120005.790118
21.83142101091041
32.561112000120029
42.0210140027.2130030
51.7512211121.691139
62.73101000091026
71.5411141013.8100031
81.46119117.281226

Variables and options

Regressors 4 selected · min 1
Text variables are dummy coded automatically.
Results update automatically when you change an option.

Results

500 rows · example data
R² / adjusted R².202 / .196
Wald F(4, 495)36.03p < .001
Observations500
AIC / BIC869.1 / 890.2
Table 1

Coefficients (Robust HC1 standard errors)

VariableCoefficientSEtp95% CI
Constant0.85140.16375.202< .001[0.5298, 1.1730]
Education0.10730.01338.057< .001[0.0811, 0.1334]
Experience0.02180.00366.056< .001[0.0147, 0.0289]
Female-0.20070.0514-3.902< .001[-0.3017, -0.0996]
Union0.07340.06651.104.270[-0.0572, 0.2039]
Table 2

Specification tests

TestNull hypothesisStatisticpResult
Breusch-Pagan (Koenker)HomoskedasticityLM(4) = 24.116< .001Heteroskedasticity
WhiteHomoskedasticityLM(12) = 27.731.006Heteroskedasticity
Ramsey RESET (powers 2, 3)Correct functional formF(2, 493) = 0.143.867Not rejected
Breusch-GodfreyNo autocorrelation up to lag 2LM = 1.089.580Not rejected
Durbin-WatsonNo first-order autocorrelation2.028—Close to 2
Jarque-BeraNormal residualsJB = 4.193.123Not rejected

Note. Condition number = 17.0 (above 30 suggests collinearity). Autocorrelation tests matter only when the rows are ordered in time.

Table 3

Variance inflation factors

VariableVIF1 / VIF
Education1.00.998
Experience1.01.995
Female1.00.999
Union1.01.994

Residuals against fitted values

Interpretation

Significant regressors: Education, Experience, Female. Heteroskedasticity is present, so the robust standard errors you selected are appropriate. The functional form passes the RESET test.

The model explained 20.2% of the variance, F(4, 495) = 36.03, p < .001, with robust hc1 standard errors.

How to cite this tool

Using these results in a thesis, journal article, report or class assignment? Please cite this free tool so others can find it. It keeps the site free.

APA 7

Xavier, B. (2026). OLS with Robust Standard Errors and Diagnostics [Web application]. FreeStatisticalTools.com. https://freestatisticaltools.com/robust-standard-errors-regression-diagnostics/

BibTeX

@software{xavier_regressiondiagnostics_2026,
  author = {Xavier, Bibin},
  title = {OLS with Robust Standard Errors and Diagnostics},
  publisher = {FreeStatisticalTools.com},
  year = {2026},
  url = {https://freestatisticaltools.com/robust-standard-errors-regression-diagnostics/},
  note = {Web application}
}

Suggested sentence for your methods section: “The analysis was carried out with the free OLS with Robust Standard Errors and Diagnostics tool on FreeStatisticalTools.com (Xavier, 2026).”

What is regression with robust standard errors?

Econometric regression needs more than coefficients. This tool estimates OLS with the standard errors your data require, heteroskedasticity-robust, clustered or Newey-West, and runs the standard specification tests for heteroskedasticity, functional form, autocorrelation, normality and multicollinearity.

When to use regression with robust standard errors

Use it for any cross-section or time-series regression where you need to justify the standard errors and show that the model passes standard specification tests.

Assumptions

  • Linearity in parameters and no perfect collinearity.
  • Exogenous regressors; if a regressor is endogenous, use 2SLS.
  • Robust standard errors fix inference under heteroskedasticity, not bias from omitted variables.

How to use this tool

  1. Enter your data. Paste columns from Excel, Google Sheets or SPSS with variable names in the first row, or upload a CSV or Excel file. The example data shows the expected layout.
  2. Choose the variables. Select the dependent variable and regressors.
  3. Set the options. Fill in standard errors and breusch-godfrey lags.
  4. Read the results. Results update automatically. Read the plain-English interpretation, then use Copy table to paste APA-style tables into Word and Copy for the results sentence.

How to report regression with robust standard errors in APA style

Report coefficients with the type of standard errors, R², the F test and the diagnostic tests in a note or appendix table.

Frequently asked questions

When should I use robust standard errors?

Whenever the Breusch-Pagan or White test suggests heteroskedasticity, and by default in most applied economics. HC1 matches Stata’s robust option; HC3 performs better in small samples.

When do I need clustered standard errors?

When observations are grouped (students in schools, firms in industries, repeated observations of the same unit) and errors may be correlated within groups.

What does the Ramsey RESET test show?

It tests whether powers of the fitted values add explanatory power. A significant result suggests omitted non-linearities or variables.

Related tools

Browse all categories