Skip to contents

DescToolsX (development version)

Robust estimators (from Wilcox’s WRS functions)

  • varX() and sdX() gain trim: winsorized variance / SD, cut at the same positions as meanX(trim =). For matrices and data frames the winsorized covariance matrix.
  • meanSE() gains trim: standard error of the trimmed mean (Tukey-McLaughlin), as used by lumen::meanCI(trim =).
  • New winsorCor() and percBendCor(): 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() gains trim: with trim > 0 the robust effect size of Algina, Keselman & Penfield (2005), with bootstrap interval.
  • quantileX() gains type = "hd", the Harrell-Davis estimator (also available in iqrX()).

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() and Agreement() 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() for glm, multinom, rpart, randomForest, svm, lda and qda; cStat() for glm; mae(), mse(), rmse(), mape() and smape() for lm) moved to the modelling package alloy, together with the model branches of brierScore(), averagePrecision() and logLoss(). These three are now generics with a default method (x, ref); ref is 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.

Acknowledgements

Parts of the code and documentation were reviewed with the help of large language models (OpenAI Codex, Anthropic Claude). Every suggestion was assessed, edited and verified by the maintainer, who remains solely responsible for the content of this package.