Changelog
Source:NEWS.md
clubSandwich 0.5.8
CRAN release: 20220815
 Added support for
ivreg::ivreg
objects when estimated by ordinary least squares (support for objects estimated by 2SM and 2SMM is not yet implemented).  Updated unit tests for
plm::plm()
whenmethod = "FD"
to account for bug fixes in version 2.62 of plm.
clubSandwich 0.5.7
CRAN release: 20220615
 Fixed bug in methods for multivariate multilevel models estimated with lme().
 Updated vignettes, examples, and unit tests so that the package can be compiled without any packages from SUGGESTS.
clubSandwich 0.5.6
CRAN release: 20220423
 Corrected bug in methods for
plm
objects estimated by random effects, which occurred when a userspecified clustering variable was at a higher level than the random effects.  Added support for
plm
objects with nested random effects (effects = "nested"
).  Added additional syntactic options for specifying clustering variable with
plm
objects. See?plm
.  Corrected bug in how
Wald_test()
labeled results whentest = "NaiveFp"
.
clubSandwich 0.5.5
CRAN release: 20220118
New function
linear_contrast()
calculates robust confidence intervals and pvalues for linear contrasts of regression coefficients from a fitted model. Works withconstrain_pairwise()
and otherconstrain_*()
helper functions.Corrected precision of unit test leading to error on M1mac.
clubSandwich 0.5.4
CRAN release: 20220109
New features

Wald_test()
gains an option fortest = "NaiveFp"
, which uses denominator degrees of freedom equal to the number of clusters minus the number of coefficients in the fitted model. 
coef_test()
andconf_int()
gain an option fortest = "naivetp"
, which uses denominator degrees of freedom equal to the number of clusters minus the number of coefficients in the fitted model.
Minor improvements and bug fixes
Corrected a bug in the Satterthwaite degrees of freedom calculations for models that include only an intercept.
Output of
coef_test()
andconf_int()
now include a variable containing the coefficient names, so that the results are “tidy.”conf_int()
now includes an option to report a pvalue for each coefficient.coef_test()
now reports degrees of freedom fortest = 'z'
andtest = 'naivet'
.vcovCR()
now provides a more informative error message when the clustering variable is a constant.vcovCR()
now handles models estimated using analytic weights, where some weights are equal to zero. Results are consistent with omitting observations with weights of zero.Added more informative error messages for
Wald_test()
andconf_int()
, triggered if the test argument does not match any of the available tests.Corrected a bug in
findCluster.rma.mv()
, which threw an error if a random effects factor in the rma.mv model had unobserved levels.Corrected a bug in
Wald_test()
, which threw an error for tests of interceptonly models.Fixed a minor bug in print method for
Wald_test()
results, which threw an error when the pvalue wasNA
.
clubSandwich 0.5.1
CRAN release: 20201012
New features
 New functionality for
impute_covariance_matrix()
: Compute covariance matrices with AR1 correlation structure or with a combination of constant correlation and AR1 correlation structure.
 Compute covariance matrices that are blocked by subgroup.
 Average the variance estimates by cluster before computing covariance matrices.
 New function
pattern_covariance_matrix()
, which creates a covariance matrix based on a specified pattern of correlations between different categories of effects.
clubSandwich 0.5.0
CRAN release: 20200901
New features: a major update to Wald_test()
Wald_test()
now uses new helper functionsconstrain_zero()
,constrain_equal()
, andconstrain_pairwise()
to specify constraint matrices.Wald_test()
gains an argumenttidy
. WhenTRUE
, results for a list of tests will be tidied into a single data.frame.Output of
Wald_test()
now includes both numerator and denominator degrees of freedom.
Minor improvements and bug fixes
Corrected bug in methods for
plm
objects, which occurred when “within” models included clusterlevel interactions. Previously main effects of clusterlevel variables were not getting dropped frommodel_matrix.plm()
.
Corrected bugs in methods for
robu
objects Corrected a bug that previously led to errors for models with only one column in the model matrix (i.e., interceptonly models).
 Corrected a bug in an internal function that previously led to errors in
constrain_equal()
andconstrain_zero()
when called on robu objects.
clubSandwich 0.4.0
CRAN release: 20191218
Added methods for
lmerMod
objects fitted bylme4::lmer()
.Updated internals to use
inherits()
instead of checkingclass()
directly.
clubSandwich 0.3.5
CRAN release: 20190514
Added t statistics to output of
coef_test()
.Fixed a bug in
get_index_order()
, an internal function used with plm objects. Previously, the function assumed that both individual and time indices were specified in theplm
call. The new function works even when zero or one indices are specified.
clubSandwich 0.3.3
CRAN release: 20190124
impute_covariance_matrix()
now drops unobserved factor levels.updated method for handling residuals from
rma.uni
andrma.mv
objects, for consistency with metafor 2.10.
clubSandwich 0.3.2
CRAN release: 20180521
Added
conf_int()
to provide easy clusterrobust confidence intervals.Added examples to documentation for
conf_int()
andcoef_test()
.
clubSandwich 0.3.1
CRAN release: 20180404
Added
coefs
option tocoef_test()
to allow testing of subsets of coefficients.Updated tests to use
carData
instead of car package.
clubSandwich 0.3.0
CRAN release: 20171113
Added methods for
ivreg
objects.Added methods for
mlm
objects.Updated
residuals_CS.plm
to account for changes in plm 1.66.
clubSandwich 0.2.3
CRAN release: 20170810
New features
Added methods for
glm
objects.Provide facility to cluster at higher level than highest random effects for
lme
andgls
objects.Added
impute_covariance_matrix()
utility function for multivariate metaanalysis.