The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.

sandwich: Robust Covariance Matrix Estimators

Object-oriented software for model-robust covariance matrix estimators. Starting out from the basic robust Eicker-Huber-White sandwich covariance methods include: heteroscedasticity-consistent (HC) covariances for cross-section data; heteroscedasticity- and autocorrelation-consistent (HAC) covariances for time series data (such as Andrews' kernel HAC, Newey-West, and WEAVE estimators); clustered covariances (one-way and multi-way); panel and panel-corrected covariances; outer-product-of-gradients covariances; and (clustered) bootstrap covariances. All methods are applicable to (generalized) linear model objects fitted by lm() and glm() but can also be adapted to other classes through S3 methods. Details can be found in Zeileis et al. (2020) <doi:10.18637/jss.v095.i01>, Zeileis (2004) <doi:10.18637/jss.v011.i10> and Zeileis (2006) <doi:10.18637/jss.v016.i09>.

Version: 3.1-1
Depends: R (≥ 3.0.0)
Imports: stats, utils, zoo
Suggests: AER, car, geepack, lattice, lme4, lmtest, MASS, multiwayvcov, parallel, pcse, plm, pscl, scatterplot3d, stats4, strucchange, survival
Published: 2024-09-15
DOI: 10.32614/CRAN.package.sandwich
Author: Achim Zeileis ORCID iD [aut, cre], Thomas Lumley ORCID iD [aut], Nathaniel Graham ORCID iD [ctb], Susanne Koell [ctb]
Maintainer: Achim Zeileis <Achim.Zeileis at R-project.org>
BugReports: https://sandwich.R-Forge.R-project.org/contact.html
License: GPL-2 | GPL-3
URL: https://sandwich.R-Forge.R-project.org/
NeedsCompilation: no
Citation: sandwich citation info
Materials: README NEWS
In views: Econometrics, Finance, Robust
CRAN checks: sandwich results

Documentation:

Reference manual: sandwich.pdf
Vignettes: Various Versatile Variances: An Object-Oriented Implementation of Clustered Covariances in R (source, R code)
Object-Oriented Computation of Sandwich Estimators (source, R code)
Econometric Computing with HC and HAC Covariance Matrix Estimators (source, R code)

Downloads:

Package source: sandwich_3.1-1.tar.gz
Windows binaries: r-devel: sandwich_3.1-1.zip, r-release: sandwich_3.1-1.zip, r-oldrel: sandwich_3.1-1.zip
macOS binaries: r-release (arm64): sandwich_3.1-1.tgz, r-oldrel (arm64): sandwich_3.1-1.tgz, r-release (x86_64): sandwich_3.1-1.tgz, r-oldrel (x86_64): sandwich_3.1-1.tgz
Old sources: sandwich archive

Reverse dependencies:

Reverse depends: AER, CADFtest, cjoint, COUNT, dhglm, DiDforBigData, evian, gfunctions, gKRLS, gmm, iClick, list, mediation, merDeriv, mfx, midasr, momentfit, PeerPerformance, prais, RcmdrMisc, rdd, strucchange, strucchangeRcpp, vars
Reverse imports: adventr, aldvmm, ardl.nardl, autostsm, bayesdistreg, beeca, betareg, BFpack, binsreg, causalOT, causalSLSE, causalweight, censReg, chantrics, clubSandwich, clusterSEs, cmprskcoxmsm, contrast, ConvergenceClubs, crch, crseEventStudy, crwbmetareg, DChaos, ddecompose, DIDmultiplegtDYN, dLagM, drcte, dsld, eventglm, ExactMed, facmodTS, fglsnet, FindIt, fixest, funtimes, fxregime, GCCfactor, gcmr, GenericML, GLMpack, glmx, glogis, gravity, Greg, grf, GVARX, GWASTools, HDTSA, highfrequency, interflex, invacost, IOLS, ivdoctr, jtools, lavaSearch2, lax, lfe, lineartestr, lite, lmw, lpirfs, maczic, maicplus, matchMulti, maxLik, medflex, memochange, mhurdle, micsr, mixl, mlt, model4you, ModTools, monotonicity, MRTAnalysis, multcomp, multiwayvcov, mzipmed, nonnest2, NormData, npcp, nse, oesr, OOS, OPSR, optic, outreg, party, PlackettLuce, plm, PointFore, pubh, quickmatch, radiant.model, Rchoice, RCreliability, RCT2, rddapp, rddtools, rdlocrand, refitME, regmedint, regtools, RESI, rifreg, rigr, risks, rqlm, sampcompR, scDIFtest, semtree, sfaR, singleRcapture, slm, sovereign, SpatialRDD, speccurvieR, ssym, StackImpute, systemfit, tbm, tradepolicy, trajmsm, tram, tramicp, tramnet, TrialEmulation, trtf, tsdistributions, tsgarch, tsmarch, vcrpart, weibulltools, wildmeta
Reverse suggests: ANOM, ARDL, broom, car, chandwich, clarify, dce, ddml, dfadjust, DoubleML, dyn, dynlm, emmeans, estimatr, finalfit, FinTS, fwb, geex, getspanel, ggeffects, healthequal, HSAUR2, HSAUR3, huxtable, insight, interactions, ivreg, lmtest, madness, marginaleffects, margins, MarkowitzR, MatchIt, memisc, miceadds, mlt.docreg, modelsummary, modmarg, panelr, parameters, parglms, partykit, performance, pscl, psychotools, psycModel, rineq, riskCommunicator, SGDinference, SharpeR, SimEngine, sjPlot, skedastic, sketching, spatialreg, StratifiedMedicine, summclust, tangram, texreg, tidyfinance, tidyfit, tstests, tukeytrend, WeightIt, wpa

Linking:

Please use the canonical form https://CRAN.R-project.org/package=sandwich to link to this page.

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.