Closed mattansb closed 8 months ago
@bwiernik I also added some unicode subscript letters just for you ;)
library(effectsize)
data("sleep")
sleep2 <- reshape(sleep, direction = "wide",
idvar = "ID", timevar = "group")
repeated_measures_d(Pair(extra.1, extra.2) ~ 1, data = sleep2, method = "av")
#> d (av) | 95% CI
#> -----------------------
#> -0.76 | [-1.13, -0.39]
#>
#> - Adjusted for small sample bias.
options(es.use_symbols = TRUE)
repeated_measures_d(Pair(extra.1, extra.2) ~ 1, data = sleep2, method = "av")
#> dₐᵥ | 95% CI
#> ----------------------
#> -0.76 | [-1.13, -0.39]
#>
#> - Adjusted for small sample bias.
Merging #618 (bfd67c6) into main (448e39b) will increase coverage by
0.18%
. The diff coverage is94.03%
.:exclamation: Current head bfd67c6 differs from pull request most recent head 6e9f42c. Consider uploading reports for the commit 6e9f42c to get more accurate results
@@ Coverage Diff @@
## main #618 +/- ##
==========================================
+ Coverage 90.55% 90.74% +0.18%
==========================================
Files 56 57 +1
Lines 3419 3564 +145
==========================================
+ Hits 3096 3234 +138
- Misses 323 330 +7
Files | Coverage Δ | |
---|---|---|
R/cohens_d.R | 96.03% <100.00%> (+0.16%) |
:arrow_up: |
R/effectsize.R | 96.77% <ø> (ø) |
|
R/effectsize.htest.R | 91.94% <100.00%> (+0.15%) |
:arrow_up: |
R/print.effectsize_table.R | 97.39% <100.00%> (+0.02%) |
:arrow_up: |
R/rank_diff.R | 81.15% <ø> (ø) |
|
R/utils_ci.R | 97.01% <ø> (ø) |
|
R/repeated_measures_d.R | 98.78% <98.78%> (ø) |
|
R/common_language.R | 94.71% <33.33%> (-0.90%) |
:arrow_down: |
R/utils_validate_input_data.R | 85.26% <88.46%> (+1.93%) |
:arrow_up: |
Alright thanks @MatthewBJane !
This PR introduces the new
repeated_measures_d()
function, thanks to the help of @bwiernik and @MatthewBJane (#372).It can be installed via:
The function is fully documented (but @bwiernik and @MatthewBJane feel free to suggest edits), with an addition to existing SMD vignette, and
effectsize(<t.test(paired = TRUE)>)
support.Demo of new functionality:
Created on 2023-11-07 with reprex v2.0.2