{
  "name": "Heteroscedasticity test and robust standard error options in R (lmtest, sandwich) and Python (statsmodels)",
  "description": "Compares the Breusch-Pagan and HC-estimator options exposed by lmtest, sandwich and statsmodels: package, argument that selects the variant, default and original reference. Compiled from the package reference documentation for each function.",
  "page": "https://casrai.org/guides/breusch-pagan-test-heteroscedasticity",
  "publisher": "CASRAI",
  "license": "https://creativecommons.org/licenses/by/4.0/",
  "dateModified": "2026-11-18T17:43:52Z",
  "temporalCoverage": "1979/2011",
  "spatialCoverage": null,
  "columns": [
    {
      "name": "Method / option",
      "unit": "",
      "description": ""
    },
    {
      "name": "Software",
      "unit": "",
      "description": ""
    },
    {
      "name": "Kind",
      "unit": "",
      "description": ""
    },
    {
      "name": "Setting or default",
      "unit": "",
      "description": ""
    },
    {
      "name": "Original reference",
      "unit": "",
      "description": ""
    },
    {
      "name": "Reference year",
      "unit": "year",
      "description": ""
    }
  ],
  "rows": [
    {
      "Method / option": "Breusch-Pagan, studentized (Koenker)",
      "Software": "R lmtest::bptest",
      "Kind": "test",
      "Setting or default": "studentize = TRUE (default); chi-square, df = regressors excluding constant",
      "Original reference": "Koenker, J. Econometrics 17:107-112",
      "Reference year": 1981
    },
    {
      "Method / option": "Breusch-Pagan, original",
      "Software": "R lmtest::bptest",
      "Kind": "test",
      "Setting or default": "studentize = FALSE",
      "Original reference": "Breusch & Pagan, Econometrica 47:1287-1294",
      "Reference year": 1979
    },
    {
      "Method / option": "Breusch-Pagan, studentized (Koenker)",
      "Software": "Python statsmodels het_breuschpagan",
      "Kind": "test",
      "Setting or default": "robust = True (default); returns lm, lm_pvalue, fvalue, f_pvalue",
      "Original reference": "Koenker, J. Econometrics 17:107-112",
      "Reference year": 1981
    },
    {
      "Method / option": "Breusch-Pagan, original",
      "Software": "Python statsmodels het_breuschpagan",
      "Kind": "test",
      "Setting or default": "robust = False (assumes normal residuals)",
      "Original reference": "Breusch & Pagan, Econometrica 47:1287-1294",
      "Reference year": 1979
    },
    {
      "Method / option": "HC0 (White)",
      "Software": "R sandwich::vcovHC",
      "Kind": "estimator",
      "Setting or default": "type = \"HC0\"",
      "Original reference": "White, Econometrica 48:817-838",
      "Reference year": 1980
    },
    {
      "Method / option": "HC3",
      "Software": "R sandwich::vcovHC",
      "Kind": "estimator",
      "Setting or default": "type = \"HC3\" (default)",
      "Original reference": "Long & Ervin, Am. Stat. 54:217-224",
      "Reference year": 2000
    },
    {
      "Method / option": "HC4",
      "Software": "R sandwich::vcovHC",
      "Kind": "estimator",
      "Setting or default": "type = \"HC4\" (leverage-adjusted)",
      "Original reference": "Cribari-Neto, CSDA 45:215-233",
      "Reference year": 2004
    },
    {
      "Method / option": "HC5",
      "Software": "R sandwich::vcovHC",
      "Kind": "estimator",
      "Setting or default": "type = \"HC5\" (leverage-adjusted)",
      "Original reference": "Cribari-Neto, Souza & Vasconcellos, Commun. Stat. Theory Methods 36:1877-1888",
      "Reference year": 2007
    },
    {
      "Method / option": "HC4m",
      "Software": "R sandwich::vcovHC",
      "Kind": "estimator",
      "Setting or default": "type = \"HC4m\" (modified HC4)",
      "Original reference": "Cribari-Neto & Da Silva, AStA 95(2):129-146",
      "Reference year": 2011
    }
  ],
  "sources": [
    {
      "title": "statsmodels het_breuschpagan",
      "url": "https://www.statsmodels.org/stable/generated/statsmodels.stats.diagnostic.het_breuschpagan.html",
      "accessed": "2026-11-18"
    },
    {
      "title": "lmtest bptest reference",
      "url": "https://search.r-project.org/CRAN/refmans/lmtest/html/bptest.html",
      "accessed": "2026-11-18"
    },
    {
      "title": "sandwich vcovHC reference",
      "url": "https://sandwich.r-forge.r-project.org/reference/vcovHC.html",
      "accessed": "2026-11-18"
    }
  ]
}