IndrajeetPatil / pairwiseComparisons

Pairwise comparison tests for one-way designs 🔬📝

Home Page:https://indrajeetpatil.github.io/pairwiseComparisons/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

feature request for `WRS2`: allow to adjust confidence intervals plus consistent output

IndrajeetPatil opened this issue · comments

  • allow users to change the confidence intervals for estimate of group difference
  • have a consistent output for both designs
    (e.g., columns p.crit and sig are only present in within-subjects output)

between-subjects design

WRS2::lincon(libido ~ dose, data = viagra)
#> Call:
#> lincon(formula = libido ~ dose, data = viagra)
#> 
#>                  psihat ci.lower ci.upper p.value
#> placebo vs. low      -1 -5.31858  3.31858 0.43533
#> placebo vs. high     -3 -7.31858  1.31858 0.18051
#> low vs. high         -2 -6.31858  2.31858 0.31660

within-subjects design

WRS2::rmmcp(WineTasting$Taste, WineTasting$Wine, WineTasting$Taster)
#> Call:
#> rmmcp(y = WineTasting$Taste, groups = WineTasting$Wine, blocks = WineTasting$Taster)
#> 
#>                    psihat ci.lower ci.upper p.value p.crit   sig
#> Wine A vs. Wine B 0.02143 -0.02164  0.06449 0.19500 0.0500 FALSE
#> Wine A vs. Wine C 0.11429  0.02148  0.20710 0.00492 0.0169  TRUE
#> Wine B vs. Wine C 0.08214  0.00891  0.15538 0.00878 0.0250  TRUE

The second one is not that important, so closing this.