Recent Releases of clubSandwich
clubSandwich - Support for some estimatr models
Adds support for estimatr::lm_robust() and estimatr::lm_lin() models.
- HTML
Published by jepusto 11 months ago
clubSandwich - Deprecating impute_covariance_matrix
This is a maintenance release. The primary changes are:
* Deprecated impute_covariance_matrix() and pattern_covariance_matrix(), because they have been superseded by metafor::vcalc().
* Corrected a unit test related to the plm package, for compatibility with upcoming release of plm.
- HTML
Published by jepusto about 2 years ago
clubSandwich - Fix for linear_contrast()
Fixed another bug in linear_contrast() to handle specified contrasts that are scalars when variance-covariance matrix is computed with a working model that is not inverse-variance.
- HTML
Published by jepusto almost 3 years ago
clubSandwich - Support for geeglm
This version adds support for geeglm() models from geepack. It also adds support for meta-analytic location-scale models estimated using the metafor package, along with miscellaneous bug fixes and enhancements.
- Added support for
geepack::geeglm()models. - Added support for
rma.lsmodels (location-scale models estimated usingmetafor::rma.uni(scale = )). - Improved error handling of
Wald_test()when vcov of contrasts is not positive definite. - Fixed a bug in
linear_contrast()to handle specified contrasts that are scalars. - Improved internal
get_datafunction forglsandlmeobjects to allow use of expressions in addition to object names.
- HTML
Published by jepusto almost 3 years ago
clubSandwich - Suggestions
This version is a maintenance release that brings the package into compliance with CRAN policies on conditional use of packages listed in SUGGESTS.
- Fixed bug in methods for multi-variate multi-level models estimated with lme().
- Updated vignettes, examples, and unit tests so that the package can be compiled without any packages from SUGGESTS.
- HTML
Published by jepusto about 4 years ago
clubSandwich - plm::plm() fixes and extensions
This release corrects a bug in the methods for random effects models fitted using plm() and extends the methods to work with nested random effects models estimated by plm().
- Corrected bug in methods for
plmobjects estimated by random effects, which occurred when a user-specified clustering variable was at a higher level than the random effects. - Added support for
plmobjects with nested random effects (effects = "nested"). - Added additional syntactic options for specifying clustering variable with
plmobjects. See?plm. - Corrected bug in how
Wald_test()labeled results whentest = "Naive-Fp".
- HTML
Published by jepusto about 4 years ago
clubSandwich - Confidence intervals with linear_contrast()
This release includes a new function linear_contrast(), which calculates robust confidence intervals and p-values for linear contrasts of regression coefficients from a fitted model. The function works with constrain_pairwise() and other constrain_*() helper functions.
- HTML
Published by jepusto over 4 years ago
clubSandwich - Miscellaneous bug fixes.
This version includes miscellaneous bug fixes, error-handling, and corrections to the documentation.
Wald_test()gains an option fortest = "Naive-Fp", 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 = "naive-tp", which uses denominator degrees of freedom equal to the number of clusters minus the number of coefficients in the fitted model.- 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 p-value for each coefficient.coef_test()now reports degrees of freedom fortest = 'z'andtest = 'naive-t'.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 intercept-only models. - Fixed a minor bug in print method for
Wald_test()results, which threw an error when the p-value was NA.
- HTML
Published by jepusto over 4 years ago
clubSandwich - New features for impute_covariance_matrix()
This release includes expanded functionality for impute_covariance_matrix() and a new, related function pattern_covariance_matrix(), both of which are useful for conducting meta-analysis of dependent effect sizes with robust variance estimation. It also includes a bug-fix for the method used to identify the outermost clustering variable in rma.mv objects.
- 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. - Corrected bug in methods for
rma.mvobjects, which previously led to incorrect identification of clustering variables in models with multiple levels of random effects, where at least one set of random effects has inner | outer structure.
- HTML
Published by jepusto over 5 years ago
clubSandwich - Redesigned Wald_test()
This release introduces a major update to Wald_test(), which now uses a set of helper functions (constrain_zero(), constrain_equal(), and constrain_pairwise()) to express constraints on the set of regression coefficients. For all the details, see the new vignette vignette("Wald-tests-in-clubSandwich").
The release also includes bug fixes for plm and robu methods.
- 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.
- Corrected bug in methods for
plmobjects, which occurred when "within" models included cluster-level interactions. Previously main effects of cluster-level variables were not getting dropped frommodel_matrix.plm(). - Corrected bugs in methods for
robuobjects- Corrected a bug that previously led to errors for models with only one column in the model matrix (i.e., intercept-only models).
- Corrected a bug in an internal function that previously led to errors in
constrain_equal()andconstrain_zero()when called on robu objects.
- HTML
Published by jepusto almost 6 years ago
clubSandwich - Another maintenance release
- Updated and streamlined unit tests for R 4.0.0.
- HTML
Published by jepusto about 6 years ago
clubSandwich - Maintenance release
- Updated unit tests to satisfy obscure CRAN checks.
- HTML
Published by jepusto over 6 years ago
clubSandwich - support for lmer()
This release adds methods for lmerMod objects fitted by lme4::lmer(). It also makes some minor changes to internals for compatibility with R-devel.
- HTML
Published by jepusto over 6 years ago
clubSandwich - t statistics and plm bug fix
This is a maintenance release. Changes are as follows: * Added t statistics to output of coeftest(). * Fixed a bug in getindex_order(), an internal function used with plm objects. Previously, the function assumed that both individual and time indices were specified in the plm call. The new function works even when zero or one indices are specified.
- HTML
Published by jepusto about 7 years ago
clubSandwich - Compatibility with metafor
This is a maintenance release. Changes are as follows: * imputecovariancematrix() now drops unobserved factor levels. * Updated method for handling residuals from rma.uni and rma.mv objects, for consistency with metafor 2.1-0.
- HTML
Published by jepusto over 7 years ago
clubSandwich - Confidence intervals
This release adds a convenience function, conf_int(), for calculating confidence intervals based on cluster-robust standard errors and Satterthwaite degrees of freedom.
- HTML
Published by jepusto about 8 years ago
clubSandwich - coef_test() a subset of regression coefficients
This is a maintenance release. The main changes are: * Added "coefs" option to coef_test() to allow testing of subsets of coefficients. * Updated suggests to use carData instead of car package.
- HTML
Published by jepusto about 8 years ago
clubSandwich - support for ivreg and mlm
This release includes:
- Methods for ivreg objects.
- Methods for mlm objects.
- Miscellaneous bug fixes, including:
- Updated residuals_CS.plm to account for changes in plm 1.6-6.
- HTML
Published by jepusto over 8 years ago
clubSandwich - Bread matrices and speed improvements
This release includes the following changes: - Added bread() methods for all supported model classes, as in the sandwich package. - vcovCR() is now calculated using bread(), and carries attributes for bread, est_mat, and adjustment matrices. - vcovCR() gains a 'form' argument to obtain just the meat of the sandwich, or to use a user-specified bread matrix. - Refactored internal functions for degrees of freedom calculation to improve speed and memory usage. - Bug fixes: - updated nobs.plm method to handle first-differenced models
- HTML
Published by jepusto over 9 years ago
clubSandwich - First CRAN release
First version released on CRAN.
- HTML
Published by jepusto almost 10 years ago