Changelog
Source:NEWS.md
betaSandwich 1.1.0
Major
- Added
SCorSandwich(),PCorSandwich(),DeltaRSqSandwich(), andFSqSandwich(): delta-method intervals for semipartial correlations, squared partial correlations, the improvement in R-squared, and Cohen’s f-squared (global and local), with normal-theory, ADF, or HC standard errors, as in betaMC and betaNB. -
RSqBetaSandwich()is removed. UseRSqSandwich(), which gives the same estimates and standard errors; its intervals and tests use the normal distribution, as the other functions do, and its estimates are namedrsqandadj. - The new functions and
DiffBetaSandwich()return objects of classessandwichwith one set of methods.DiffBetaSandwich()objects also keep the classdiffbetasandwich.
Minor
- Selective standardization: the arguments
std_yandstd_xstandardize only y or only the named regressors (for example, leave a dummy variable in its 0-1 units). The defaults give the same results as before. -
DiffBetaSandwich()stops when the slopes are not fully standardized.
Patch
BetaHC()and the HC-based functions are faster: the internal.GammaHC()builds thevech(d_i d_i' - Sigma)rows for all observations at once and usescrossprod()(n = 5000, 8 regressors: 0.88 s to 0.02-0.07 s); the results are unchanged.BetaADF()and the ADF-based functions are faster: the internal ADF covariance of thevech(d_i d_i')rows is built for all observations at once and usescrossprod(); the results are unchanged.Fixed the standard error of R-squared in
RSqBetaSandwich(), which was about three times too small for every covariance type. With R-squared as a parameter, the variance of y is beta’ Sigma_X beta / R-squared, so its derivatives with respect to beta and Sigma_X are now divided by R-squared.The internal copies from linearAlgebra 0.0.5 (a faster duplication matrix and its inverse) and processLM 0.0.11 are current; the results are unchanged.
Documentation
- Add
SCorSqSandwich()for the image of a signed-semipartial interval under squaring. - Add a package help page; the description, README, and vignettes list the current features.
- The definitions and formulas of the effect sizes are in the roxygen documentation and in the effect size vignette; the README no longer carries them.
- Add examples for
SCorSqSandwich()and for thecoef(),vcov(), andconfint()methods to the effect size vignette. - Replace roxygen links to betaDelta (not on CRAN) with code text, and wrap the roxygen lines at 80 characters.
- The examples name every argument (
stats::lm(formula = ..., data = ...),BetaHC(object = object)), as in the other beta packages. -
DeltaRSqSandwich()cites Algina et al. (2007, 2008a, 2008b, 2010), andFSqSandwich()cites Selya et al. (2012).
betaSandwich 1.0.4
CRAN release: 2023-04-25
Patch
- Added the
DiffBetaSandwich()and theRSqBetaSandwich()functions.