DescToolsX (development version)
Robust estimators (from Wilcox’s WRS functions)
-
varX()andsdX()gaintrim: winsorized variance / SD, cut at the same positions asmeanX(trim =). For matrices and data frames the winsorized covariance matrix. -
meanSE()gainstrim: standard error of the trimmed mean (Tukey-McLaughlin), as used bylumen::meanCI(trim =). - New
winsorCor()andpercBendCor(): winsorized and percentage bend correlation, with bootstrap confidence intervals (percentile by default). - New
cliffDelta(): Cliff’s delta with Cliff’s asymmetric interval, computed in O(n log n). -
cohenD()gainstrim: withtrim > 0the robust effect size of Algina, Keselman & Penfield (2005), with bootstrap interval. -
quantileX()gainstype = "hd", the Harrell-Davis estimator (also available iniqrX()).
DescToolsX 0.0.0.945
New features
- Descriptive layer of the DescToolsX package suite and redesigned successor to DescTools: frequency and contingency tables, measures of location, dispersion, shape and concentration, association and agreement coefficients, effect sizes, and classifier metrics.
-
desc()is a single generic dispatching on the type of the input, so vectors, factors, dates, variable pairs, tables and whole data frames are described through one entry point. - Common interfaces
Association()andAgreement()collect the respective families of coefficients behind one call. - Performance-critical routines are implemented in C++ via Rcpp, RcppArmadillo and RcppParallel.
Changes from DescTools
- Consistent lowerCamelCase naming throughout; function names, argument names and argument order follow the design rules of the suite.
- The classifier and prediction metrics work on vectors and tables only. Their methods for fitted models (
confusion()forglm,multinom,rpart,randomForest,svm,ldaandqda;cStat()forglm;mae(),mse(),rmse(),mape()andsmape()forlm) moved to the modelling package alloy, together with the model branches ofbrierScore(),averagePrecision()andlogLoss(). These three are now generics with a default method(x, ref);refis required. - Base utilities, graphics and inferential procedures have moved into the separate packages bedrock, pharos and lumen; DescToolsX now depends on them instead of carrying its own copies.
