Changelog
Source:NEWS.md
betaMC 1.3.5
Minor
- New
FSqMC(): Cohen’s f-squared and the local f-squared of each regressor. - New
SCorSqMC(): the image of a signed-semipartial interval under squaring. - Faster Monte Carlo: the draws are screened and the effect sizes computed in C++ (Rcpp, RcppArmadillo), once per
MC()orMCMI()call. The draws are the same as before for the same seed. - The
thetahatstarelements ofmcandbetamcobjects are now matrices (one draw per row) instead of lists.mcobjects also holdvechsigmacapandes. - A draw that fails the admissibility checks 1000 times in a row is dropped (earlier versions could loop without end).
- 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. - The internal copies from linearAlgebra 0.0.5 (a faster duplication matrix and its inverse), nBootstrap 0.1.0 (quantiles in C++), strRegression 0.0.2, and processLM 0.0.11 are current. The pseudo-inverse of the duplication matrix is now exact, so results for a fixed seed may differ slightly from 1.3.4; the difference is within Monte Carlo error.
Patch
-
MC()andMCMI()stop with an error for anlmfit without an intercept, withweights, or with anoffset. These fits were accepted before, and the results were wrong. -
DiffBetaMC()computes the differences of the standardized slopes without a loop. - Documentation: the
MC()andMCMI()help pages listFSqMC()andSCorSqMC()among the functions that accept their output;SCorSqMC()joins the Beta Monte Carlo family. - Documentation: formulas use
\operatorname{}and\boldsymbol{}; the undefined\matnrm{}macro in the Monte Carlo bias, variance, and RMSE help pages is now\mathrm{}; the DOI links usehttps.
Documentation
- The examples name every argument and call
stats::lm(). -
DeltaRSqMC()cites Algina, Keselman, and Penfield (2007, 2008a, 2008b, 2010), asDeltaRSqSandwich()andDeltaRSqNB()do. -
MC()andMCMI()returnscreen, the counts of the screened Monte Carlo draws: requested, retained, rejected (inadmissible first-pass draws), redraws, and exhausted (dropped after 1000 failed redraws). The draws are unchanged. - Internal copies refreshed from semmcci 1.1.7 (
1076264:.ThetaHatStarScreen()counts the draws; its redraws use the samepdandtolas the first pass) and processLM 0.0.12 (d6e0211:.MCLM()returns the counts).
betaMC 1.3.0
CRAN release: 2023-08-22
Minor
- Added the
MCMI()function to perform Monte Carlo simulation of parameters for data sets with missing values using multiple imputation.
betaMC 1.2.0
CRAN release: 2023-04-13
Minor
- The Monte Carlo simulation of parameters is done by the
MC()function. The output of theMC()function is passed to theBetaMC(),RSqMC(),SCorMC(),DeltaRSqMC(),PCorMC(), andDiffBetaMC()functions to generate Monte Carlo confidence intervals for various regression effect sizes.