CRAN/E | sandwich

sandwich

Robust Covariance Matrix Estimators

Installation

About

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.

Citation sandwich citation info
sandwich.R-Forge.R-project.org/
Bug report File report

Key Metrics

Version 3.1-0
R ≥ 3.0.0
Published 2023-12-11 138 days ago
Needs compilation? no
License GPL-2
License GPL-3
CRAN checks sandwich results

Downloads

Yesterday 7.949 0%
Last 7 days 39.264 -20%
Last 30 days 180.465 -9%
Last 90 days 544.768 -4%
Last 365 days 2.285.602 -21%

Maintainer

Maintainer

Achim Zeileis

Achim.Zeileis@R-project.org

Authors

Achim Zeileis

aut / cre

Thomas Lumley

aut

Nathaniel Graham

ctb

Susanne Koell

ctb

Material

README
NEWS
Reference manual
Package source

In Views

Econometrics
Finance
Robust

Vignettes

Various Versatile Variances: An Object-Oriented Implementation of Clustered Covariances in R
Object-Oriented Computation of Sandwich Estimators
Econometric Computing with HC and HAC Covariance Matrix Estimators

macOS

r-release

arm64

r-oldrel

arm64

r-release

x86_64

r-oldrel

x86_64

Windows

r-devel

x86_64

r-release

x86_64

r-oldrel

x86_64

Old Sources

sandwich archive

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

Reverse Depends

AER
CADFtest
cjoint
COUNT
dhglm
DiDforBigData
evian
gKRLS
gmm
iClick
list
mediation
merDeriv
mfx
midasr
momentfit
PeerPerformance
prais
RcmdrMisc
rdd
strucchange
strucchangeRcpp
vars

Reverse Imports

adventr
aldvmm
ardl.nardl
autostsm
bayesdistreg
betareg
BFpack
binsreg
bucky
causalOT
censReg
chantrics
clubSandwich
clusterSEs
cmprskcoxmsm
contrast
ConvergenceClubs
crch
cregg
crseEventStudy
crwbmetareg
DChaos
DirectEffects
dLagM
DMLLZU
drcte
eventglm
ExactMed
facmodTS
fglsnet
FindIt
fixest
funtimes
fxregime
GCCfactor
gcmr
GenericML
GLMpack
glmx
glogis
gravity
Greg
grf
GVARX
GWASTools
HARModel
HDTSA
highfrequency
interflex
invacost
Load all 119 items
(warning: might lead to performance issues and take some time)

Reverse Suggests

ANOM
ARDL
broom
car
chandwich
clarify
dce
ddml
dfadjust
DoubleML
dyn
dynlm
emmeans
estimatr
finalfit
FinTS
fwb
fwildclusterboot
geex
getspanel
ggeffects
gtsummary
HSAUR2
HSAUR3
huxtable
insight
interactions
ivreg
jtools
lmtest
madness
marginaleffects
margins
MarkowitzR
MatchIt
memisc
miceadds
mlt.docreg
modelsummary
modmarg
panelr
parameters
parglms
partykit
performance
pscl
psychotools
psycModel
rineq
riskCommunicator
Load all 64 items
(warning: might lead to performance issues and take some time)