This packages contains functions to compute effect sizes both based on means difference (Cohen's d and Hedges g), dominance matrices (Cliff's Delta) and stochastic superiority (Vargha-Delaney A).
The computation (especially for Cliff's Delta) is carried on with higly efficient algorithms.
The main functions are:
cliff.delta
.
cohen.d
.
VD.A
.
Change history
Fixed a bug in cohen.d
when PAIRED=TRUE
, now the PAIRED
parameter has no effect, it is left just for compatibility. In a future code clean-up it may be removed
Implemented a new algorithm with improved memory and time complexity. In particular new time complexity is T = O(n1*log(n2)) vs. the previous T = O(n1*n2), and new memory complexity M = O( n1 + n2 ) vs. the previous M = O( n1 * n2). In practice now the computation becomes feasible in a "reasonable" time.
Code clean-up and optimization using vectorized binary partioning.
Added Vargha and Delaney A and fixed minor bugs with Cohen.d.
Modified the Vargha and Delaney A computation to minimize accuracy errors.
Fixed bug in cliff.delta
.
Fixed bug in cohen.d.formula
.
Fixed minor issue detected by check.
Changed the effsize field magnitude to a factor value.
Implemented paired computation and CI computation with non-central t-distributions for cohen.d.
Added ability to specify factor vector and data vector for 'cliff.delta' function (thanks to Joses W. Ho).
na.rm
in cohen.d
removes all incomplete pairs when paired.
fixed bug in cohen.d
when na.rm=TRUE
, minor changes in the documentation (thanks to P.Thomas)
Fixed a bug related to pairedcohen.d
with NAs.
Minor documentation changes
Refactored tests using testthat
package.
Fixed a bug in cliff.delta
returning inconsistent
results when the dominance matrix is returned. Fixed issue concerning CI.
Fixed bug in cohen.d
when using noncentral parameter for negative effect sizes.
Fixed minor bugs in cliff.delta
and cohen.d
Fixed bugs in cohen.d
, order of factors is now observed and CI are computed correctly
Fixed bugs in cohen.d
, possible endless loop, cleaned code
Fixed bugs in cliff.delta
when values are factors
Fixed bugs in cohen.d
for paired data
Fixed bugs in cohen.d
for CI of paired data
Fixed bugs in cohen.d
for non-pooled SD, plus a few pull requests on documentation
Fixed bug in cohen.d
wrong correct type check
Fixed tests to be compatible with upcoming R 4.0, that sets stringsAsFactors to FALSE by default
Added non-central CI estimation for single sample cohen.d
, fixed a bug related to order of data and added a subject
parameter for paired cohen.d
Marco Torchiano http://softeng.polito.it/torchiano/
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.