From 836466962fe3437e29d743894b718b8e8fa6c432 Mon Sep 17 00:00:00 2001 From: Indrajeet Patil Date: Sat, 12 Sep 2020 08:01:22 +0200 Subject: [PATCH] cran submission 2.0.1 --- CRAN-RELEASE | 4 +- DESCRIPTION | 6 +- NEWS.md | 4 +- README.md | 118 +++++--- codemeta.json | 8 +- cran-comments.md | 3 +- docs/404.html | 4 +- docs/CODE_OF_CONDUCT.html | 4 +- docs/CONTRIBUTING.html | 4 +- docs/LICENSE-text.html | 4 +- docs/LICENSE.html | 4 +- docs/SUPPORT.html | 4 +- docs/authors.html | 4 +- docs/index.html | 148 ++++++---- docs/news/index.html | 13 +- docs/pkgdown.css | 4 +- docs/pkgdown.yml | 6 +- docs/reference/bugs_long.html | 13 +- docs/reference/games_howell.html | 6 +- docs/reference/index.html | 4 +- docs/reference/iris_long.html | 13 +- docs/reference/movies_long.html | 13 +- docs/reference/movies_wide.html | 13 +- docs/reference/p_adjust_text.html | 16 +- docs/reference/pairwise_caption.html | 11 +- docs/reference/pairwise_comparisons.html | 267 ++++++++++-------- docs/reference/reexports.html | 8 +- .../test-pairwise_comparisons_between.R | 10 - .../test-pairwise_comparisons_within.R | 18 -- 29 files changed, 391 insertions(+), 343 deletions(-) diff --git a/CRAN-RELEASE b/CRAN-RELEASE index c65e03b..c433fab 100644 --- a/CRAN-RELEASE +++ b/CRAN-RELEASE @@ -1,2 +1,2 @@ -This package was submitted to CRAN on 2020-09-04. -Once it is accepted, delete this file and tag the release (commit 8ab15c7). +This package was submitted to CRAN on 2020-09-12. +Once it is accepted, delete this file and tag the release (commit 8049c44). diff --git a/DESCRIPTION b/DESCRIPTION index 985d01f..e7fba70 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Type: Package Package: pairwiseComparisons Title: Multiple Pairwise Comparison Tests -Version: 2.0.0.9000 +Version: 2.0.1 Authors@R: person(given = "Indrajeet", family = "Patil", @@ -28,7 +28,7 @@ Imports: dplyr, dunn.test, forcats, - ipmisc (>= 3.0.1), + ipmisc, PMCMRplus, purrr, rlang, @@ -36,7 +36,7 @@ Imports: tidyBF (>= 0.2.1), tidyr, utils, - WRS2 (>= 1.1-0) + WRS2 Suggests: knitr, rmarkdown, diff --git a/NEWS.md b/NEWS.md index a2046b0..c671d57 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,4 +1,6 @@ -# pairwiseComparisons 2.0.0.9000 +# pairwiseComparisons 2.0.1 + + - Hotfix release to fix failing tests due to release of `tidyBF 0.3.0`. # pairwiseComparisons 2.0.0 diff --git a/README.md b/README.md index 28f23ee..67ea64a 100644 --- a/README.md +++ b/README.md @@ -8,9 +8,9 @@ |---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [![CRAN\_Release\_Badge](http://www.r-pkg.org/badges/version-ago/pairwiseComparisons)](https://CRAN.R-project.org/package=pairwiseComparisons) | [![Travis Build Status](https://travis-ci.org/IndrajeetPatil/pairwiseComparisons.svg?branch=master)](https://travis-ci.org/IndrajeetPatil/pairwiseComparisons) | [![Daily downloads badge](https://cranlogs.r-pkg.org/badges/last-day/pairwiseComparisons?color=blue)](https://CRAN.R-project.org/package=pairwiseComparisons) | [![GitHub version](https://img.shields.io/badge/GitHub-2.0.0-orange.svg?style=flat-square)](https://github.com/IndrajeetPatil/pairwiseComparisons/) | [![Website](https://img.shields.io/badge/website-pairwiseComparisons-orange.svg?colorB=E91E63)](https://indrajeetpatil.github.io/pairwiseComparisons/) | | [![CRAN Checks](https://cranchecks.info/badges/summary/pairwiseComparisons)](https://cran.r-project.org/web/checks/check_results_pairwiseComparisons.html) | [![AppVeyor Build Status](https://ci.appveyor.com/api/projects/status/github/IndrajeetPatil/pairwiseComparisons?branch=master&svg=true)](https://ci.appveyor.com/project/IndrajeetPatil/pairwiseComparisons) | [![Weekly downloads badge](https://cranlogs.r-pkg.org/badges/last-week/pairwiseComparisons?color=blue)](https://CRAN.R-project.org/package=pairwiseComparisons) | [![Forks](https://img.shields.io/badge/forks-3-blue.svg)](https://github.com/IndrajeetPatil/pairwiseComparisons/) | [![Rdoc](https://www.rdocumentation.org/badges/version/pairwiseComparisons)](https://www.rdocumentation.org/packages/pairwiseComparisons) | -| [![minimal R version](https://img.shields.io/badge/R%3E%3D-3.6.0-6666ff.svg)](https://cran.r-project.org/) | [![lifecycle](https://img.shields.io/badge/lifecycle-maturing-blue.svg)](https://www.tidyverse.org/lifecycle/) | [![Monthly downloads badge](https://cranlogs.r-pkg.org/badges/last-month/pairwiseComparisons?color=blue)](https://CRAN.R-project.org/package=pairwiseComparisons) | [![Github Issues](https://img.shields.io/badge/issues-1-red.svg)](https://github.com/IndrajeetPatil/pairwiseComparisons/issues) | [![vignettes](https://img.shields.io/badge/vignettes-2.0.0-orange.svg?colorB=FF5722)](https://github.com/IndrajeetPatil/pairwiseComparisons/blob/master/README.md) | +| [![minimal R version](https://img.shields.io/badge/R%3E%3D-3.6.0-6666ff.svg)](https://cran.r-project.org/) | [![lifecycle](https://img.shields.io/badge/lifecycle-maturing-blue.svg)](https://www.tidyverse.org/lifecycle/) | [![Monthly downloads badge](https://cranlogs.r-pkg.org/badges/last-month/pairwiseComparisons?color=blue)](https://CRAN.R-project.org/package=pairwiseComparisons) | [![Github Issues](https://img.shields.io/badge/issues-0-red.svg)](https://github.com/IndrajeetPatil/pairwiseComparisons/issues) | [![vignettes](https://img.shields.io/badge/vignettes-2.0.0-orange.svg?colorB=FF5722)](https://github.com/IndrajeetPatil/pairwiseComparisons/blob/master/README.md) | | [![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/IndrajeetPatil/pairwiseComparisons.svg)](https://github.com/IndrajeetPatil/pairwiseComparisons) | [![Coverage Status](https://coveralls.io/repos/github/IndrajeetPatil/pairwiseComparisons/badge.svg?branch=master)](https://coveralls.io/github/IndrajeetPatil/pairwiseComparisons?branch=master) | [![Total downloads badge](https://cranlogs.r-pkg.org/badges/grand-total/pairwiseComparisons?color=blue)](https://CRAN.R-project.org/package=pairwiseComparisons) | [![Github Stars](https://img.shields.io/github/stars/IndrajeetPatil/pairwiseComparisons.svg?style=social&label=Github)](https://github.com/IndrajeetPatil/pairwiseComparisons) | [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.2074621.svg)](https://doi.org/10.5281/zenodo.2074621) | -| [![Licence](https://img.shields.io/badge/licence-GPL--3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0.en.html) | [![Codecov test coverage](https://codecov.io/gh/IndrajeetPatil/pairwiseComparisons/branch/master/graph/badge.svg)](https://codecov.io/gh/IndrajeetPatil/pairwiseComparisons?branch=master) | [![Covrpage Summary](https://img.shields.io/badge/covrpage-Last_Build_2020_05_29-brightgreen.svg)](https://github.com/IndrajeetPatil/pairwiseComparisons/blob/master/tests/README.md) | [![Last-changedate](https://img.shields.io/badge/last%20change-2020--09--04-yellowgreen.svg)](https://github.com/IndrajeetPatil/pairwiseComparisons/commits/master) | [![GitHub last commit](https://img.shields.io/github/last-commit/IndrajeetPatil/pairwiseComparisons.svg)](https://github.com/IndrajeetPatil/pairwiseComparisons/commits/master) | +| [![Licence](https://img.shields.io/badge/licence-GPL--3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0.en.html) | [![Codecov test coverage](https://codecov.io/gh/IndrajeetPatil/pairwiseComparisons/branch/master/graph/badge.svg)](https://codecov.io/gh/IndrajeetPatil/pairwiseComparisons?branch=master) | [![Covrpage Summary](https://img.shields.io/badge/covrpage-Last_Build_2020_05_29-brightgreen.svg)](https://github.com/IndrajeetPatil/pairwiseComparisons/blob/master/tests/README.md) | [![Last-changedate](https://img.shields.io/badge/last%20change-2020--09--12-yellowgreen.svg)](https://github.com/IndrajeetPatil/pairwiseComparisons/commits/master) | [![GitHub last commit](https://img.shields.io/github/last-commit/IndrajeetPatil/pairwiseComparisons.svg)](https://github.com/IndrajeetPatil/pairwiseComparisons/commits/master) | | [![status](https://tinyverse.netlify.com/badge/pairwiseComparisons)](https://CRAN.R-project.org/package=pairwiseComparisons) | [![R build status](https://github.com/IndrajeetPatil/pairwiseComparisons/workflows/R-CMD-check/badge.svg)](https://github.com/IndrajeetPatil/pairwiseComparisons) | [![Gitter chat](https://badges.gitter.im/gitterHQ/gitter.png)](https://gitter.im/pairwiseComparisons/community) | [![Project Status](http://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/#active) | [![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](https://github.com/IndrajeetPatil/pairwiseComparisons/issues) | Introduction @@ -229,23 +229,39 @@ Between-subjects design type = "bayes", paired = FALSE ) - #> # A tibble: 6 x 11 - #> group1 group2 bf10 bf01 log_e_bf10 log_e_bf01 log_10_bf10 log_10_bf01 - #> - #> 1 carni herbi 0.540 1.85 -0.617 0.617 -0.268 0.268 - #> 2 carni insecti 0.718 1.39 -0.332 0.332 -0.144 0.144 - #> 3 carni omni 0.427 2.34 -0.851 0.851 -0.369 0.369 - #> 4 herbi insecti 0.540 1.85 -0.616 0.616 -0.267 0.267 - #> 5 herbi omni 0.571 1.75 -0.560 0.560 -0.243 0.243 - #> 6 insecti omni 0.545 1.83 -0.606 0.606 -0.263 0.263 - #> bf.prior label test.details - #> - #> 1 0.707 list(~log[e](BF[10])==-0.62) Student's t-test - #> 2 0.707 list(~log[e](BF[10])==-0.33) Student's t-test - #> 3 0.707 list(~log[e](BF[10])==-0.85) Student's t-test - #> 4 0.707 list(~log[e](BF[10])==-0.62) Student's t-test - #> 5 0.707 list(~log[e](BF[10])==-0.56) Student's t-test - #> 6 0.707 list(~log[e](BF[10])==-0.61) Student's t-test + #> # A tibble: 6 x 21 + #> group1 group2 term estimate conf.low conf.high pd rope.percentage + #> + #> 1 carni herbi Difference -0.383 -1.15 0.349 0.801 0.135 + #> 2 carni insecti Difference 0.0348 -0.0271 0.104 0.812 0.975 + #> 3 carni omni Difference -0.0460 -0.195 0.107 0.692 0.749 + #> 4 herbi insecti Difference 0.358 -0.586 1.33 0.744 0.126 + #> 5 herbi omni Difference 0.371 -0.234 0.884 0.856 0.144 + #> 6 insecti omni Difference -0.0755 -0.286 0.102 0.742 0.586 + #> prior.distribution prior.location prior.scale effects component bf10 bf01 + #> + #> 1 cauchy 0 0.707 fixed conditional 0.540 1.85 + #> 2 cauchy 0 0.707 fixed conditional 0.718 1.39 + #> 3 cauchy 0 0.707 fixed conditional 0.427 2.34 + #> 4 cauchy 0 0.707 fixed conditional 0.540 1.85 + #> 5 cauchy 0 0.707 fixed conditional 0.571 1.75 + #> 6 cauchy 0 0.707 fixed conditional 0.545 1.83 + #> log_e_bf10 log_e_bf01 log_10_bf10 log_10_bf01 label + #> + #> 1 -0.617 0.617 -0.268 0.268 list(~log[e](BF[10])==-0.62) + #> 2 -0.332 0.332 -0.144 0.144 list(~log[e](BF[10])==-0.33) + #> 3 -0.851 0.851 -0.369 0.369 list(~log[e](BF[10])==-0.85) + #> 4 -0.616 0.616 -0.267 0.267 list(~log[e](BF[10])==-0.62) + #> 5 -0.560 0.560 -0.243 0.243 list(~log[e](BF[10])==-0.56) + #> 6 -0.606 0.606 -0.263 0.263 list(~log[e](BF[10])==-0.61) + #> test.details + #> + #> 1 Student's t-test + #> 2 Student's t-test + #> 3 Student's t-test + #> 4 Student's t-test + #> 5 Student's t-test + #> 6 Student's t-test Within-subjects design ---------------------- @@ -343,17 +359,27 @@ Within-subjects design paired = TRUE, bf.prior = 0.77 ) - #> # A tibble: 3 x 11 - #> group1 group2 bf10 bf01 log_e_bf10 log_e_bf01 log_10_bf10 log_10_bf01 - #> - #> 1 Wine A Wine B 0.219 4.57 -1.52 1.52 -0.660 0.660 - #> 2 Wine A Wine C 3.60 0.277 1.28 -1.28 0.557 -0.557 - #> 3 Wine B Wine C 50.5 0.0198 3.92 -3.92 1.70 -1.70 - #> bf.prior label test.details - #> - #> 1 0.77 list(~log[e](BF[10])==-1.52) Student's t-test - #> 2 0.77 list(~log[e](BF[10])==1.28) Student's t-test - #> 3 0.77 list(~log[e](BF[10])==3.92) Student's t-test + #> # A tibble: 3 x 21 + #> group1 group2 term estimate conf.low conf.high pd rope.percentage + #> + #> 1 Wine A Wine B Difference 0.0150 0.00797 0.0228 1 1 + #> 2 Wine A Wine C Difference 0.0222 0.0119 0.0332 1 1 + #> 3 Wine B Wine C Difference 0.00807 0.00439 0.0126 1 1 + #> prior.distribution prior.location prior.scale effects component bf10 + #> + #> 1 cauchy 0 0.77 fixed conditional 0.219 + #> 2 cauchy 0 0.77 fixed conditional 3.60 + #> 3 cauchy 0 0.77 fixed conditional 50.5 + #> bf01 log_e_bf10 log_e_bf01 log_10_bf10 log_10_bf01 + #> + #> 1 4.57 -1.52 1.52 -0.660 0.660 + #> 2 0.277 1.28 -1.28 0.557 -0.557 + #> 3 0.0198 3.92 -3.92 1.70 -1.70 + #> label test.details + #> + #> 1 list(~log[e](BF[10])==-1.52) Student's t-test + #> 2 list(~log[e](BF[10])==1.28) Student's t-test + #> 3 list(~log[e](BF[10])==3.92) Student's t-test Using `pairwiseComparisons` with `ggsignif` to display results ============================================================== @@ -426,17 +452,27 @@ Example-2: within-subjects pairwise_comparisons(WRS2::WineTasting, Wine, Taste, type = "bayes", paired = TRUE) %>% dplyr::mutate(.data = ., groups = purrr::pmap(.l = list(group1, group2), .f = c)) %>% dplyr::arrange(.data = ., group1)) - #> # A tibble: 3 x 12 - #> group1 group2 bf10 bf01 log_e_bf10 log_e_bf01 log_10_bf10 log_10_bf01 - #> - #> 1 Wine A Wine B 0.235 4.25 -1.45 1.45 -0.628 0.628 - #> 2 Wine A Wine C 3.71 0.269 1.31 -1.31 0.570 -0.570 - #> 3 Wine B Wine C 50.5 0.0198 3.92 -3.92 1.70 -1.70 - #> bf.prior label test.details groups - #> - #> 1 0.707 list(~log[e](BF[10])==-1.45) Student's t-test - #> 2 0.707 list(~log[e](BF[10])==1.31) Student's t-test - #> 3 0.707 list(~log[e](BF[10])==3.92) Student's t-test + #> # A tibble: 3 x 22 + #> group1 group2 term estimate conf.low conf.high pd rope.percentage + #> + #> 1 Wine A Wine B Difference 0.0151 0.00817 0.0226 1 1 + #> 2 Wine A Wine C Difference 0.0224 0.0129 0.0349 1 1 + #> 3 Wine B Wine C Difference 0.00808 0.00463 0.0128 1 1 + #> prior.distribution prior.location prior.scale effects component bf10 + #> + #> 1 cauchy 0 0.707 fixed conditional 0.235 + #> 2 cauchy 0 0.707 fixed conditional 3.71 + #> 3 cauchy 0 0.707 fixed conditional 50.5 + #> bf01 log_e_bf10 log_e_bf01 log_10_bf10 log_10_bf01 + #> + #> 1 4.25 -1.45 1.45 -0.628 0.628 + #> 2 0.269 1.31 -1.31 0.570 -0.570 + #> 3 0.0198 3.92 -3.92 1.70 -1.70 + #> label test.details groups + #> + #> 1 list(~log[e](BF[10])==-1.45) Student's t-test + #> 2 list(~log[e](BF[10])==1.31) Student's t-test + #> 3 list(~log[e](BF[10])==3.92) Student's t-test # using `geom_signif` to display results p + diff --git a/codemeta.json b/codemeta.json index 3c53164..773e5ad 100644 --- a/codemeta.json +++ b/codemeta.json @@ -14,13 +14,13 @@ ], "issueTracker": "\n https://github.com/IndrajeetPatil/pairwiseComparisons/issues", "license": "https://spdx.org/licenses/GPL-3.0", - "version": "2.0.0.9000", + "version": "2.0.1", "programmingLanguage": { "@type": "ComputerLanguage", "name": "R", "url": "https://r-project.org" }, - "runtimePlatform": "R Under development (unstable) (2020-09-01 r79114)", + "runtimePlatform": "R Under development (unstable) (2020-09-04 r79137)", "author": [ { "@type": "Person", @@ -159,7 +159,6 @@ "@type": "SoftwareApplication", "identifier": "ipmisc", "name": "ipmisc", - "version": ">= 3.0.1", "provider": { "@id": "https://cran.r-project.org", "@type": "Organization", @@ -243,7 +242,6 @@ "@type": "SoftwareApplication", "identifier": "WRS2", "name": "WRS2", - "version": ">= 1.1-0", "provider": { "@id": "https://cran.r-project.org", "@type": "Organization", @@ -278,5 +276,5 @@ "name": "Comprehensive R Archive Network (CRAN)", "url": "https://cran.r-project.org" }, - "fileSize": "1321.401KB" + "fileSize": "1322.73KB" } diff --git a/cran-comments.md b/cran-comments.md index f5fec68..bc78abd 100644 --- a/cran-comments.md +++ b/cran-comments.md @@ -7,5 +7,4 @@ 0 errors | 0 warnings | 0 note - - Fixes a bug which affected results for within-subjects design when the - dataframe wasn't sorted by `x`. + - Hotfix release to fix failing tests due to release of `tidyBF 0.3.0`. \ No newline at end of file diff --git a/docs/404.html b/docs/404.html index 9fab0b2..7e366fc 100644 --- a/docs/404.html +++ b/docs/404.html @@ -87,7 +87,7 @@ pairwiseComparisons - 2.0.0.9000 + 2.0.1 @@ -155,7 +155,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/CODE_OF_CONDUCT.html b/docs/CODE_OF_CONDUCT.html index 326ace5..06f1d57 100644 --- a/docs/CODE_OF_CONDUCT.html +++ b/docs/CODE_OF_CONDUCT.html @@ -87,7 +87,7 @@ pairwiseComparisons - 2.0.0.9000 + 2.0.1 @@ -163,7 +163,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/CONTRIBUTING.html b/docs/CONTRIBUTING.html index e28814e..ce59316 100644 --- a/docs/CONTRIBUTING.html +++ b/docs/CONTRIBUTING.html @@ -87,7 +87,7 @@ pairwiseComparisons - 2.0.0.9000 + 2.0.1 @@ -200,7 +200,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/LICENSE-text.html b/docs/LICENSE-text.html index fd35c19..a557ab7 100644 --- a/docs/LICENSE-text.html +++ b/docs/LICENSE-text.html @@ -87,7 +87,7 @@ pairwiseComparisons - 2.0.0.9000 + 2.0.1 @@ -157,7 +157,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/LICENSE.html b/docs/LICENSE.html index 23075f7..9ac1e5a 100644 --- a/docs/LICENSE.html +++ b/docs/LICENSE.html @@ -87,7 +87,7 @@ pairwiseComparisons - 2.0.0.9000 + 2.0.1 @@ -377,7 +377,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/SUPPORT.html b/docs/SUPPORT.html index 00f0319..45e54d3 100644 --- a/docs/SUPPORT.html +++ b/docs/SUPPORT.html @@ -87,7 +87,7 @@ pairwiseComparisons - 2.0.0.9000 + 2.0.1 @@ -170,7 +170,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/authors.html b/docs/authors.html index 1e1cc15..ace010e 100644 --- a/docs/authors.html +++ b/docs/authors.html @@ -87,7 +87,7 @@ pairwiseComparisons - 2.0.0.9000 + 2.0.1 @@ -170,7 +170,7 @@

Authors

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/index.html b/docs/index.html index ea3cb39..3bea9f7 100644 --- a/docs/index.html +++ b/docs/index.html @@ -47,7 +47,7 @@ pairwiseComparisons - 2.0.0.9000 + 2.0.1 @@ -129,7 +129,7 @@ minimal R version lifecycle Monthly downloads badge -Github Issues +Github Issues vignettes @@ -143,7 +143,7 @@ Licence Codecov test coverage Covrpage Summary -Last-changedate +Last-changedate GitHub last commit @@ -414,23 +414,39 @@

type = "bayes", paired = FALSE ) -#> # A tibble: 6 x 11 -#> group1 group2 bf10 bf01 log_e_bf10 log_e_bf01 log_10_bf10 log_10_bf01 -#> <chr> <chr> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> -#> 1 carni herbi 0.540 1.85 -0.617 0.617 -0.268 0.268 -#> 2 carni insecti 0.718 1.39 -0.332 0.332 -0.144 0.144 -#> 3 carni omni 0.427 2.34 -0.851 0.851 -0.369 0.369 -#> 4 herbi insecti 0.540 1.85 -0.616 0.616 -0.267 0.267 -#> 5 herbi omni 0.571 1.75 -0.560 0.560 -0.243 0.243 -#> 6 insecti omni 0.545 1.83 -0.606 0.606 -0.263 0.263 -#> bf.prior label test.details -#> <dbl> <chr> <chr> -#> 1 0.707 list(~log[e](BF[10])==-0.62) Student's t-test -#> 2 0.707 list(~log[e](BF[10])==-0.33) Student's t-test -#> 3 0.707 list(~log[e](BF[10])==-0.85) Student's t-test -#> 4 0.707 list(~log[e](BF[10])==-0.62) Student's t-test -#> 5 0.707 list(~log[e](BF[10])==-0.56) Student's t-test -#> 6 0.707 list(~log[e](BF[10])==-0.61) Student's t-test +#> # A tibble: 6 x 21 +#> group1 group2 term estimate conf.low conf.high pd rope.percentage +#> <chr> <chr> <chr> <dbl> <dbl> <dbl> <dbl> <dbl> +#> 1 carni herbi Difference -0.383 -1.15 0.349 0.801 0.135 +#> 2 carni insecti Difference 0.0348 -0.0271 0.104 0.812 0.975 +#> 3 carni omni Difference -0.0460 -0.195 0.107 0.692 0.749 +#> 4 herbi insecti Difference 0.358 -0.586 1.33 0.744 0.126 +#> 5 herbi omni Difference 0.371 -0.234 0.884 0.856 0.144 +#> 6 insecti omni Difference -0.0755 -0.286 0.102 0.742 0.586 +#> prior.distribution prior.location prior.scale effects component bf10 bf01 +#> <chr> <dbl> <dbl> <chr> <chr> <dbl> <dbl> +#> 1 cauchy 0 0.707 fixed conditional 0.540 1.85 +#> 2 cauchy 0 0.707 fixed conditional 0.718 1.39 +#> 3 cauchy 0 0.707 fixed conditional 0.427 2.34 +#> 4 cauchy 0 0.707 fixed conditional 0.540 1.85 +#> 5 cauchy 0 0.707 fixed conditional 0.571 1.75 +#> 6 cauchy 0 0.707 fixed conditional 0.545 1.83 +#> log_e_bf10 log_e_bf01 log_10_bf10 log_10_bf01 label +#> <dbl> <dbl> <dbl> <dbl> <chr> +#> 1 -0.617 0.617 -0.268 0.268 list(~log[e](BF[10])==-0.62) +#> 2 -0.332 0.332 -0.144 0.144 list(~log[e](BF[10])==-0.33) +#> 3 -0.851 0.851 -0.369 0.369 list(~log[e](BF[10])==-0.85) +#> 4 -0.616 0.616 -0.267 0.267 list(~log[e](BF[10])==-0.62) +#> 5 -0.560 0.560 -0.243 0.243 list(~log[e](BF[10])==-0.56) +#> 6 -0.606 0.606 -0.263 0.263 list(~log[e](BF[10])==-0.61) +#> test.details +#> <chr> +#> 1 Student's t-test +#> 2 Student's t-test +#> 3 Student's t-test +#> 4 Student's t-test +#> 5 Student's t-test +#> 6 Student's t-test

@@ -528,17 +544,27 @@

paired = TRUE, bf.prior = 0.77 ) -#> # A tibble: 3 x 11 -#> group1 group2 bf10 bf01 log_e_bf10 log_e_bf01 log_10_bf10 log_10_bf01 -#> <chr> <chr> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> -#> 1 Wine A Wine B 0.219 4.57 -1.52 1.52 -0.660 0.660 -#> 2 Wine A Wine C 3.60 0.277 1.28 -1.28 0.557 -0.557 -#> 3 Wine B Wine C 50.5 0.0198 3.92 -3.92 1.70 -1.70 -#> bf.prior label test.details -#> <dbl> <chr> <chr> -#> 1 0.77 list(~log[e](BF[10])==-1.52) Student's t-test -#> 2 0.77 list(~log[e](BF[10])==1.28) Student's t-test -#> 3 0.77 list(~log[e](BF[10])==3.92) Student's t-test

+#> # A tibble: 3 x 21 +#> group1 group2 term estimate conf.low conf.high pd rope.percentage +#> <chr> <chr> <chr> <dbl> <dbl> <dbl> <dbl> <dbl> +#> 1 Wine A Wine B Difference 0.0150 0.00797 0.0228 1 1 +#> 2 Wine A Wine C Difference 0.0222 0.0119 0.0332 1 1 +#> 3 Wine B Wine C Difference 0.00807 0.00439 0.0126 1 1 +#> prior.distribution prior.location prior.scale effects component bf10 +#> <chr> <dbl> <dbl> <chr> <chr> <dbl> +#> 1 cauchy 0 0.77 fixed conditional 0.219 +#> 2 cauchy 0 0.77 fixed conditional 3.60 +#> 3 cauchy 0 0.77 fixed conditional 50.5 +#> bf01 log_e_bf10 log_e_bf01 log_10_bf10 log_10_bf01 +#> <dbl> <dbl> <dbl> <dbl> <dbl> +#> 1 4.57 -1.52 1.52 -0.660 0.660 +#> 2 0.277 1.28 -1.28 0.557 -0.557 +#> 3 0.0198 3.92 -3.92 1.70 -1.70 +#> label test.details +#> <chr> <chr> +#> 1 list(~log[e](BF[10])==-1.52) Student's t-test +#> 2 list(~log[e](BF[10])==1.28) Student's t-test +#> 3 list(~log[e](BF[10])==3.92) Student's t-test
@@ -611,30 +637,40 @@

pairwise_comparisons(WRS2::WineTasting, Wine, Taste, type = "bayes", paired = TRUE) %>% dplyr::mutate(.data = ., groups = purrr::pmap(.l = list(group1, group2), .f = c)) %>% dplyr::arrange(.data = ., group1)) -#> # A tibble: 3 x 12 -#> group1 group2 bf10 bf01 log_e_bf10 log_e_bf01 log_10_bf10 log_10_bf01 -#> <chr> <chr> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> -#> 1 Wine A Wine B 0.235 4.25 -1.45 1.45 -0.628 0.628 -#> 2 Wine A Wine C 3.71 0.269 1.31 -1.31 0.570 -0.570 -#> 3 Wine B Wine C 50.5 0.0198 3.92 -3.92 1.70 -1.70 -#> bf.prior label test.details groups -#> <dbl> <chr> <chr> <list> -#> 1 0.707 list(~log[e](BF[10])==-1.45) Student's t-test <chr [2]> -#> 2 0.707 list(~log[e](BF[10])==1.31) Student's t-test <chr [2]> -#> 3 0.707 list(~log[e](BF[10])==3.92) Student's t-test <chr [2]> - -# using `geom_signif` to display results -p + - ggsignif::geom_signif( - comparisons = df$groups, - map_signif_level = TRUE, - tip_length = 0.01, - y_position = c(6.5, 6.65, 6.8), - annotations = df$label, - test = NULL, - na.rm = TRUE, - parse = TRUE - )

+#> # A tibble: 3 x 22 +#> group1 group2 term estimate conf.low conf.high pd rope.percentage +#> <chr> <chr> <chr> <dbl> <dbl> <dbl> <dbl> <dbl> +#> 1 Wine A Wine B Difference 0.0151 0.00817 0.0226 1 1 +#> 2 Wine A Wine C Difference 0.0224 0.0129 0.0349 1 1 +#> 3 Wine B Wine C Difference 0.00808 0.00463 0.0128 1 1 +#> prior.distribution prior.location prior.scale effects component bf10 +#> <chr> <dbl> <dbl> <chr> <chr> <dbl> +#> 1 cauchy 0 0.707 fixed conditional 0.235 +#> 2 cauchy 0 0.707 fixed conditional 3.71 +#> 3 cauchy 0 0.707 fixed conditional 50.5 +#> bf01 log_e_bf10 log_e_bf01 log_10_bf10 log_10_bf01 +#> <dbl> <dbl> <dbl> <dbl> <dbl> +#> 1 4.25 -1.45 1.45 -0.628 0.628 +#> 2 0.269 1.31 -1.31 0.570 -0.570 +#> 3 0.0198 3.92 -3.92 1.70 -1.70 +#> label test.details groups +#> <chr> <chr> <list> +#> 1 list(~log[e](BF[10])==-1.45) Student's t-test <chr [2]> +#> 2 list(~log[e](BF[10])==1.31) Student's t-test <chr [2]> +#> 3 list(~log[e](BF[10])==3.92) Student's t-test <chr [2]> + +# using `geom_signif` to display results +p + + ggsignif::geom_signif( + comparisons = df$groups, + map_signif_level = TRUE, + tip_length = 0.01, + y_position = c(6.5, 6.65, 6.8), + annotations = df$label, + test = NULL, + na.rm = TRUE, + parse = TRUE + )

@@ -709,7 +745,7 @@

Developers

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/news/index.html b/docs/news/index.html index fcb844d..42bfb04 100644 --- a/docs/news/index.html +++ b/docs/news/index.html @@ -87,7 +87,7 @@ pairwiseComparisons - 2.0.0.9000 + 2.0.1 @@ -136,10 +136,13 @@

Changelog

Source: NEWS.md -
-

-pairwiseComparisons 2.0.0.9000 Unreleased +
+

+pairwiseComparisons 2.0.1 Unreleased

+
    +
  • Hotfix release to fix failing tests due to release of tidyBF 0.3.0.
  • +

@@ -263,7 +266,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/pkgdown.css b/docs/pkgdown.css index 1273238..c01e592 100644 --- a/docs/pkgdown.css +++ b/docs/pkgdown.css @@ -244,14 +244,14 @@ nav[data-toggle='toc'] .nav .nav > .active:focus > a { .ref-index th {font-weight: normal;} -.ref-index td {vertical-align: top; min-width: 100px} +.ref-index td {vertical-align: top;} .ref-index .icon {width: 40px;} .ref-index .alias {width: 40%;} .ref-index-icons .alias {width: calc(40% - 40px);} .ref-index .title {width: 60%;} .ref-arguments th {text-align: right; padding-right: 10px;} -.ref-arguments th, .ref-arguments td {vertical-align: top; min-width: 100px} +.ref-arguments th, .ref-arguments td {vertical-align: top;} .ref-arguments .name {width: 20%;} .ref-arguments .desc {width: 80%;} diff --git a/docs/pkgdown.yml b/docs/pkgdown.yml index 278aa8c..f6c98b2 100644 --- a/docs/pkgdown.yml +++ b/docs/pkgdown.yml @@ -1,8 +1,8 @@ pandoc: 2.10.1 -pkgdown: 1.5.1.9000 -pkgdown_sha: c6b35532515a7ae433eff4b547d77eeae4278664 +pkgdown: 1.5.1 +pkgdown_sha: ~ articles: [] -last_built: 2020-09-04T19:50Z +last_built: 2020-09-12T05:52Z urls: reference: https://indrajeetpatil.github.io/pairwiseComparisons//reference article: https://indrajeetpatil.github.io/pairwiseComparisons//articles diff --git a/docs/reference/bugs_long.html b/docs/reference/bugs_long.html index 33c7003..963e567 100644 --- a/docs/reference/bugs_long.html +++ b/docs/reference/bugs_long.html @@ -88,7 +88,7 @@ pairwiseComparisons - 2.0.0.9000 + 2.0.1

@@ -142,7 +142,7 @@

Tidy version of the "Bugs" dataset.

Tidy version of the "Bugs" dataset.

-
bugs_long
+
bugs_long

Format

@@ -172,9 +172,7 @@

Details all anthropods. Subset of the data reported by Ryan et al. (2013).

Examples

-
dim(bugs_long) -
#> [1] 372 6
head(bugs_long) -
#> # A tibble: 6 x 6 +
dim(bugs_long)
#> [1] 372 6
head(bugs_long)
#> # A tibble: 6 x 6 #> subject gender region education condition desire #> <int> <fct> <fct> <fct> <chr> <dbl> #> 1 1 Female North America some LDLF 6 @@ -182,8 +180,7 @@

Examp #> 3 3 Female Europe college LDLF 5 #> 4 4 Female North America college LDLF 6 #> 5 5 Female North America some LDLF 3 -#> 6 6 Female Europe some LDLF 2

dplyr::glimpse(bugs_long) -
#> Rows: 372 +#> 6 6 Female Europe some LDLF 2
dplyr::glimpse(bugs_long)
#> Rows: 372 #> Columns: 6 #> $ subject <int> 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17... #> $ gender <fct> Female, Female, Female, Female, Female, Female, Female, F... @@ -206,7 +203,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/games_howell.html b/docs/reference/games_howell.html index 9b64ee5..0e2e186 100644 --- a/docs/reference/games_howell.html +++ b/docs/reference/games_howell.html @@ -89,7 +89,7 @@ pairwiseComparisons - 2.0.0.9000 + 2.0.1
@@ -144,7 +144,7 @@

Games-Howell post-hoc test

for Welch's one-way analysis of variance (ANOVA) (stats::oneway.test()).

-
games_howell(data, x, y)
+
games_howell(data, x, y)

Arguments

@@ -186,7 +186,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/index.html b/docs/reference/index.html index d1e2751..d6abf58 100644 --- a/docs/reference/index.html +++ b/docs/reference/index.html @@ -87,7 +87,7 @@ pairwiseComparisons - 2.0.0.9000 + 2.0.1 @@ -261,7 +261,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/iris_long.html b/docs/reference/iris_long.html index 22fba11..ddd2628 100644 --- a/docs/reference/iris_long.html +++ b/docs/reference/iris_long.html @@ -88,7 +88,7 @@ pairwiseComparisons - 2.0.0.9000 + 2.0.1 @@ -142,7 +142,7 @@

Edgar Anderson's Iris Data in long format.

Edgar Anderson's Iris Data in long format.

-
iris_long
+
iris_long

Format

@@ -169,9 +169,7 @@

Details

This is a modified dataset from datasets package.

Examples

-
dim(iris_long) -
#> [1] 600 6
head(iris_long) -
#> # A tibble: 6 x 6 +
dim(iris_long)
#> [1] 600 6
head(iris_long)
#> # A tibble: 6 x 6 #> id Species condition attribute measure value #> <int> <fct> <fct> <fct> <fct> <dbl> #> 1 1 setosa Sepal.Length Sepal Length 5.1 @@ -179,8 +177,7 @@

Examp #> 3 3 setosa Sepal.Length Sepal Length 4.7 #> 4 4 setosa Sepal.Length Sepal Length 4.6 #> 5 5 setosa Sepal.Length Sepal Length 5 -#> 6 6 setosa Sepal.Length Sepal Length 5.4

dplyr::glimpse(iris_long) -
#> Rows: 600 +#> 6 6 setosa Sepal.Length Sepal Length 5.4
dplyr::glimpse(iris_long)
#> Rows: 600 #> Columns: 6 #> $ id <int> 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17... #> $ Species <fct> setosa, setosa, setosa, setosa, setosa, setosa, setosa, s... @@ -203,7 +200,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/movies_long.html b/docs/reference/movies_long.html index b409dc7..edbf82d 100644 --- a/docs/reference/movies_long.html +++ b/docs/reference/movies_long.html @@ -88,7 +88,7 @@ pairwiseComparisons - 2.0.0.9000 + 2.0.1
@@ -142,7 +142,7 @@

Movie information and user ratings from IMDB.com (long format).

Movie information and user ratings from IMDB.com (long format).

-
movies_long
+
movies_long

Format

@@ -173,9 +173,7 @@

Details genre category.

Examples

-
dim(movies_long) -
#> [1] 1579 8
head(movies_long) -
#> # A tibble: 6 x 8 +
dim(movies_long)
#> [1] 1579 8
head(movies_long)
#> # A tibble: 6 x 8 #> title year length budget rating #> <chr> <int> <int> <dbl> <dbl> #> 1 Shawshank Redemption, The 1994 142 25 9.1 @@ -191,8 +189,7 @@

Examp #> 3 157608 PG-13 Action #> 4 114797 PG-13 Action #> 5 132745 R Drama -#> 6 97667 R Drama

dplyr::glimpse(movies_long) -
#> Rows: 1,579 +#> 6 97667 R Drama
dplyr::glimpse(movies_long)
#> Rows: 1,579 #> Columns: 8 #> $ title <chr> "Shawshank Redemption, The", "Lord of the Rings: The Return ... #> $ year <int> 1994, 2003, 2001, 2002, 1994, 1993, 1977, 1980, 1968, 2002, ... @@ -217,7 +214,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/movies_wide.html b/docs/reference/movies_wide.html index 01597be..dc4f711 100644 --- a/docs/reference/movies_wide.html +++ b/docs/reference/movies_wide.html @@ -88,7 +88,7 @@ pairwiseComparisons - 2.0.0.9000 + 2.0.1
@@ -142,7 +142,7 @@

Movie information and user ratings from IMDB.com (wide format).

Movie information and user ratings from IMDB.com (wide format).

-
movies_wide
+
movies_wide

Format

@@ -175,9 +175,7 @@

Details and NC-17 movies were removed.

Examples

-
dim(movies_wide) -
#> [1] 1579 13
head(movies_wide) -
#> # A tibble: 6 x 13 +
dim(movies_wide)
#> [1] 1579 13
head(movies_wide)
#> # A tibble: 6 x 13 #> title year length budget rating votes mpaa Action #> <chr> <int> <int> <dbl> <dbl> <int> <fct> <int> #> 1 'Til There Was You 1997 113 23 4.8 799 PG-13 0 @@ -193,8 +191,7 @@

Examp #> 3 0 1 0 0 1 #> 4 0 1 1 1 3 #> 5 0 0 0 0 1 -#> 6 0 0 1 0 1

dplyr::glimpse(movies_wide) -
#> Rows: 1,579 +#> 6 0 0 1 0 1
dplyr::glimpse(movies_wide)
#> Rows: 1,579 #> Columns: 13 #> $ title <chr> "'Til There Was You", "10 Things I Hate About You", "100 ... #> $ year <int> 1997, 1999, 2002, 2004, 1999, 2001, 1972, 2003, 1999, 200... @@ -224,7 +221,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/p_adjust_text.html b/docs/reference/p_adjust_text.html index 4d70dff..f3c1725 100644 --- a/docs/reference/p_adjust_text.html +++ b/docs/reference/p_adjust_text.html @@ -6,7 +6,7 @@ -Preparing text to describe which p-value adjustment method was used — p_adjust_text • pairwiseComparisons +Preparing text to describe which <em>p</em>-value adjustment method was used — p_adjust_text • pairwiseComparisons @@ -54,7 +54,7 @@ - + @@ -88,7 +88,7 @@ pairwiseComparisons - 2.0.0.9000 + 2.0.1
@@ -142,7 +142,7 @@

Preparing text to describe which p-value adjustment method was used

Preparing text to describe which p-value adjustment method was used

-
p_adjust_text(p.adjust.method)
+
p_adjust_text(p.adjust.method)

Arguments

@@ -160,10 +160,8 @@

Value

Standardized text description for what method was used.

Examples

-
library(pairwiseComparisons) -p_adjust_text("none") -
#> [1] "None"
p_adjust_text("BY") -
#> [1] "Benjamini & Yekutieli"
+
library(pairwiseComparisons) +p_adjust_text("none")
#> [1] "None"
p_adjust_text("BY")
#> [1] "Benjamini & Yekutieli"
-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/pairwise_caption.html b/docs/reference/pairwise_caption.html index 8da6101..5c1adcb 100644 --- a/docs/reference/pairwise_caption.html +++ b/docs/reference/pairwise_caption.html @@ -90,7 +90,7 @@ pairwiseComparisons - 2.0.0.9000 + 2.0.1 @@ -146,7 +146,7 @@

Expression containing details about pairwise comparison test

typically included in ggstatsplot package plots as a caption.

-
pairwise_caption(caption, test.description, p.adjust.method)
+
pairwise_caption(caption, test.description, p.adjust.method)

Arguments

@@ -169,9 +169,8 @@

Arg

Examples

-
library(pairwiseComparisons) -pairwise_caption("my caption", "Student's t-test", "holm") -
#> atop(displaystyle("my caption"), expr = paste("Pairwise comparisons: ", +
library(pairwiseComparisons) +pairwise_caption("my caption", "Student's t-test", "holm")
#> atop(displaystyle("my caption"), expr = paste("Pairwise comparisons: ", #> bold("Student's t-test"), "; Adjustment (p-value): ", bold("Holm")))
-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/pairwise_comparisons.html b/docs/reference/pairwise_comparisons.html index f3859bd..e361e1a 100644 --- a/docs/reference/pairwise_comparisons.html +++ b/docs/reference/pairwise_comparisons.html @@ -89,7 +89,7 @@ pairwiseComparisons - 2.0.0.9000 + 2.0.1 @@ -145,31 +145,31 @@

Multiple pairwise comparison tests with tidy data

pairwise_comparisons(
-  data,
-  x,
-  y,
-  type = "parametric",
-  paired = FALSE,
-  var.equal = FALSE,
-  tr = 0.1,
-  bf.prior = 0.707,
-  p.adjust.method = "holm",
-  k = 2L,
-  ...
+  data,
+  x,
+  y,
+  type = "parametric",
+  paired = FALSE,
+  var.equal = FALSE,
+  tr = 0.1,
+  bf.prior = 0.707,
+  p.adjust.method = "holm",
+  k = 2L,
+  ...
 )
 
 pairwise_p(
-  data,
-  x,
-  y,
-  type = "parametric",
-  paired = FALSE,
-  var.equal = FALSE,
-  tr = 0.1,
-  bf.prior = 0.707,
-  p.adjust.method = "holm",
-  k = 2L,
-  ...
+  data,
+  x,
+  y,
+  type = "parametric",
+  paired = FALSE,
+  var.equal = FALSE,
+  tr = 0.1,
+  bf.prior = 0.707,
+  p.adjust.method = "holm",
+  k = 2L,
+  ...
 )

Arguments

@@ -251,7 +251,7 @@

Value

The significance column asterisks indicate significance levels of p-values in the American Psychological Association (APA) mandated format:

  • ns : > 0.05

  • -
  • * : < 0.05

  • +
  • * : < 0.05

  • ** : < 0.01

  • *** : < 0.001

@@ -262,25 +262,24 @@

Examp # \donttest{ # for reproducibility set.seed(123) -library(pairwiseComparisons) +library(pairwiseComparisons) # show me all columns and make the column titles bold -options(tibble.width = Inf, pillar.bold = TRUE) +options(tibble.width = Inf, pillar.bold = TRUE) #------------------- between-subjects design ---------------------------- # parametric # if `var.equal = TRUE`, then Student's t-test will be run pairwise_comparisons( - data = mtcars, - x = cyl, - y = wt, - type = "parametric", - var.equal = TRUE, - paired = FALSE, - p.adjust.method = "none" -) -
#> # A tibble: 3 x 8 + data = mtcars, + x = cyl, + y = wt, + type = "parametric", + var.equal = TRUE, + paired = FALSE, + p.adjust.method = "none" +)
#> # A tibble: 3 x 8 #> group1 group2 mean.difference p.value significance #> <chr> <chr> <dbl> <dbl> <chr> #> 1 4 6 0.831 0.0106 * @@ -293,15 +292,14 @@

Examp #> 3 list(~italic(p)[unadjusted]==0.005) Student's t-test None

# if `var.equal = FALSE`, then Games-Howell test will be run pairwise_comparisons( - data = mtcars, - x = cyl, - y = wt, - type = "parametric", - var.equal = FALSE, - paired = FALSE, - p.adjust.method = "bonferroni" -) -
#> # A tibble: 3 x 11 + data = mtcars, + x = cyl, + y = wt, + type = "parametric", + var.equal = FALSE, + paired = FALSE, + p.adjust.method = "bonferroni" +)
#> # A tibble: 3 x 11 #> group1 group2 mean.difference se t.value df p.value significance #> <chr> <chr> <dbl> <dbl> <dbl> <dbl> <dbl> <chr> #> 1 4 6 0.831 0.154 3.81 16.0 0.012 * @@ -314,14 +312,13 @@

Examp #> 3 list(~italic(p)[adjusted]==0.015) Games-Howell test Bonferroni

# non-parametric (Dunn test) pairwise_comparisons( - data = mtcars, - x = cyl, - y = wt, - type = "nonparametric", - paired = FALSE, - p.adjust.method = "none" -) -
#> # A tibble: 3 x 8 + data = mtcars, + x = cyl, + y = wt, + type = "nonparametric", + paired = FALSE, + p.adjust.method = "none" +)
#> # A tibble: 3 x 8 #> group1 group2 z.value p.value significance #> <chr> <chr> <dbl> <dbl> <chr> #> 1 4 6 1.84 0.0663 ns @@ -334,14 +331,13 @@

Examp #> 3 list(~italic(p)[unadjusted]==0.026) Dunn test None

# robust (Yuen's trimmed means t-test) pairwise_comparisons( - data = mtcars, - x = cyl, - y = wt, - type = "robust", - paired = FALSE, - p.adjust.method = "fdr" -) -
#> # A tibble: 3 x 10 + data = mtcars, + x = cyl, + y = wt, + type = "robust", + paired = FALSE, + p.adjust.method = "fdr" +)
#> # A tibble: 3 x 10 #> group1 group2 psihat conf.low conf.high p.value significance #> <chr> <chr> <dbl> <dbl> <dbl> <dbl> <chr> #> 1 4 6 -0.846 -1.51 -0.180 0.00625 ** @@ -359,35 +355,43 @@

Examp #> 3 Benjamini & Hochberg

# Bayes Factor (Student's t-test) pairwise_comparisons( - data = mtcars, - x = cyl, - y = wt, - type = "bayes", - paired = FALSE -) -
#> # A tibble: 3 x 11 -#> group1 group2 bf10 bf01 log_e_bf10 log_e_bf01 log_10_bf10 log_10_bf01 -#> <chr> <chr> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> -#> 1 4 6 11.4 0.0874 2.44 -2.44 1.06 -1.06 -#> 2 4 8 5222. 0.000192 8.56 -8.56 3.72 -3.72 -#> 3 6 8 5.36 0.187 1.68 -1.68 0.729 -0.729 -#> bf.prior label test.details -#> <dbl> <chr> <chr> -#> 1 0.707 list(~log[e](BF[10])==2.44) Student's t-test -#> 2 0.707 list(~log[e](BF[10])==8.56) Student's t-test -#> 3 0.707 list(~log[e](BF[10])==1.68) Student's t-test
+ data = mtcars, + x = cyl, + y = wt, + type = "bayes", + paired = FALSE +)
#> # A tibble: 3 x 21 +#> group1 group2 term estimate conf.low conf.high pd rope.percentage +#> <chr> <chr> <chr> <dbl> <dbl> <dbl> <dbl> <dbl> +#> 1 4 6 Difference -0.688 -1.10 -0.252 0.994 0 +#> 2 4 8 Difference -1.62 -2.09 -1.15 1 0 +#> 3 6 8 Difference -0.703 -1.24 -0.207 0.988 0 +#> prior.distribution prior.location prior.scale effects component bf10 +#> <chr> <dbl> <dbl> <chr> <chr> <dbl> +#> 1 cauchy 0 0.707 fixed conditional 11.4 +#> 2 cauchy 0 0.707 fixed conditional 5222. +#> 3 cauchy 0 0.707 fixed conditional 5.36 +#> bf01 log_e_bf10 log_e_bf01 log_10_bf10 log_10_bf01 +#> <dbl> <dbl> <dbl> <dbl> <dbl> +#> 1 0.0874 2.44 -2.44 1.06 -1.06 +#> 2 0.000192 8.56 -8.56 3.72 -3.72 +#> 3 0.187 1.68 -1.68 0.729 -0.729 +#> label test.details +#> <chr> <chr> +#> 1 list(~log[e](BF[10])==2.44) Student's t-test +#> 2 list(~log[e](BF[10])==8.56) Student's t-test +#> 3 list(~log[e](BF[10])==1.68) Student's t-test
#------------------- within-subjects design ---------------------------- # parametric (Student's t-test) pairwise_comparisons( - data = bugs_long, - x = condition, - y = desire, - type = "parametric", - paired = TRUE, - p.adjust.method = "BH" -) -
#> # A tibble: 6 x 8 + data = bugs_long, + x = condition, + y = desire, + type = "parametric", + paired = TRUE, + p.adjust.method = "BH" +)
#> # A tibble: 6 x 8 #> group1 group2 mean.difference p.value significance #> <chr> <chr> <dbl> <dbl> <chr> #> 1 HDHF HDLF -1.15 1.06e- 3 ** @@ -406,14 +410,13 @@

Examp #> 6 list(~italic(p)[adjusted]<=0.001) Student's t-test Benjamini & Hochberg

# non-parametric (Durbin-Conover test) pairwise_comparisons( - data = bugs_long, - x = condition, - y = desire, - type = "nonparametric", - paired = TRUE, - p.adjust.method = "BY" -) -
#> # A tibble: 6 x 8 + data = bugs_long, + x = condition, + y = desire, + type = "nonparametric", + paired = TRUE, + p.adjust.method = "BY" +)
#> # A tibble: 6 x 8 #> group1 group2 W p.value significance label #> <chr> <chr> <dbl> <dbl> <chr> <chr> #> 1 HDHF HDLF 4.78 1.44e- 5 *** list(~italic(p)[adjusted]<=0.001) @@ -432,14 +435,13 @@

Examp #> 6 Durbin-Conover test Benjamini & Yekutieli

# robust (Yuen's trimmed means t-test) pairwise_comparisons( - data = bugs_long, - x = condition, - y = desire, - type = "robust", - paired = TRUE, - p.adjust.method = "hommel" -) -
#> # A tibble: 6 x 10 + data = bugs_long, + x = condition, + y = desire, + type = "robust", + paired = TRUE, + p.adjust.method = "hommel" +)
#> # A tibble: 6 x 10 #> group1 group2 psihat conf.low conf.high p.value significance #> <chr> <chr> <dbl> <dbl> <dbl> <dbl> <chr> #> 1 HDHF HDLF 1.16 0.318 2.00 1.49e- 3 ** @@ -458,29 +460,44 @@

Examp #> 6 list(~italic(p)[adjusted]<=0.001) Yuen's trimmed means test Hommel

# Bayes Factor (Student's t-test) pairwise_comparisons( - data = bugs_long, - x = condition, - y = desire, - type = "bayes", - paired = TRUE -) -
#> # A tibble: 6 x 11 -#> group1 group2 bf10 bf01 log_e_bf10 log_e_bf01 log_10_bf10 log_10_bf01 -#> <chr> <chr> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> -#> 1 HDHF HDLF 4.16e+ 1 2.41e- 2 3.73 -3.73 1.62 -1.62 -#> 2 HDHF LDHF 5.83e- 1 1.71e+ 0 -0.539 0.539 -0.234 0.234 -#> 3 HDHF LDLF 1.20e+10 8.34e-11 23.2 -23.2 10.1 -10.1 -#> 4 HDLF LDHF 6.98e- 1 1.43e+ 0 -0.359 0.359 -0.156 0.156 -#> 5 HDLF LDLF 1.81e+ 1 5.52e- 2 2.90 -2.90 1.26 -1.26 -#> 6 LDHF LDLF 4.81e+ 6 2.08e- 7 15.4 -15.4 6.68 -6.68 -#> bf.prior label test.details -#> <dbl> <chr> <chr> -#> 1 0.707 list(~log[e](BF[10])==3.73) Student's t-test -#> 2 0.707 list(~log[e](BF[10])==-0.54) Student's t-test -#> 3 0.707 list(~log[e](BF[10])==23.21) Student's t-test -#> 4 0.707 list(~log[e](BF[10])==-0.36) Student's t-test -#> 5 0.707 list(~log[e](BF[10])==2.90) Student's t-test -#> 6 0.707 list(~log[e](BF[10])==15.39) Student's t-test
# } + data = bugs_long, + x = condition, + y = desire, + type = "bayes", + paired = TRUE +)
#> # A tibble: 6 x 21 +#> group1 group2 term estimate conf.low conf.high pd rope.percentage +#> <chr> <chr> <chr> <dbl> <dbl> <dbl> <dbl> <dbl> +#> 1 HDHF HDLF Difference 8.96 6.93 11.1 1 0 +#> 2 HDHF LDHF Difference 5.80 4.43 7.26 1 0 +#> 3 HDHF LDLF Difference 5.88 4.44 7.29 1 0 +#> 4 HDLF LDHF Difference 10.7 8.04 13.3 1 0 +#> 5 HDLF LDLF Difference 8.21 6.30 10.3 1 0 +#> 6 LDHF LDLF Difference 5.69 4.44 7.18 1 0 +#> prior.distribution prior.location prior.scale effects component bf10 +#> <chr> <dbl> <dbl> <chr> <chr> <dbl> +#> 1 cauchy 0 0.707 fixed conditional 4.16e+ 1 +#> 2 cauchy 0 0.707 fixed conditional 5.83e- 1 +#> 3 cauchy 0 0.707 fixed conditional 1.20e+10 +#> 4 cauchy 0 0.707 fixed conditional 6.98e- 1 +#> 5 cauchy 0 0.707 fixed conditional 1.81e+ 1 +#> 6 cauchy 0 0.707 fixed conditional 4.81e+ 6 +#> bf01 log_e_bf10 log_e_bf01 log_10_bf10 log_10_bf01 +#> <dbl> <dbl> <dbl> <dbl> <dbl> +#> 1 2.41e- 2 3.73 -3.73 1.62 -1.62 +#> 2 1.71e+ 0 -0.539 0.539 -0.234 0.234 +#> 3 8.34e-11 23.2 -23.2 10.1 -10.1 +#> 4 1.43e+ 0 -0.359 0.359 -0.156 0.156 +#> 5 5.52e- 2 2.90 -2.90 1.26 -1.26 +#> 6 2.08e- 7 15.4 -15.4 6.68 -6.68 +#> label test.details +#> <chr> <chr> +#> 1 list(~log[e](BF[10])==3.73) Student's t-test +#> 2 list(~log[e](BF[10])==-0.54) Student's t-test +#> 3 list(~log[e](BF[10])==23.21) Student's t-test +#> 4 list(~log[e](BF[10])==-0.36) Student's t-test +#> 5 list(~log[e](BF[10])==2.90) Student's t-test +#> 6 list(~log[e](BF[10])==15.39) Student's t-test
# }

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/docs/reference/reexports.html b/docs/reference/reexports.html index bd58f41..5cd16ff 100644 --- a/docs/reference/reexports.html +++ b/docs/reference/reexports.html @@ -95,7 +95,7 @@ pairwiseComparisons - 2.0.0.9000 + 2.0.1 @@ -148,8 +148,8 @@

Objects exported from other packages

These objects are imported from other packages. Follow the links below to see their documentation.

-
-
ipmisc

%$%, %<-%, %<>%, %>%, as_tibble, enframe, long_to_wide_converter, signif_column, specify_decimal_p, tibble

+ +
ipmisc

%$%, %<-%, %<>%, %>%, as_tibble, enframe, long_to_wide_converter, signif_column, specify_decimal_p, tibble

rlang

%|%, %||%, :=

@@ -174,7 +174,7 @@

Contents

-

Site built with pkgdown 1.5.1.9000.

+

Site built with pkgdown 1.5.1.

diff --git a/tests/testthat/test-pairwise_comparisons_between.R b/tests/testthat/test-pairwise_comparisons_between.R index dec97c7..b75ad50 100644 --- a/tests/testthat/test-pairwise_comparisons_between.R +++ b/tests/testthat/test-pairwise_comparisons_between.R @@ -225,14 +225,6 @@ testthat::test_that( k = 3 ) - # checking dimensions of the results dataframe - testthat::expect_equal(dim(df1), c(6L, 8L)) - testthat::expect_equal(dim(df2), c(6L, 11L)) - testthat::expect_equal(dim(df3), c(6L, 8L)) - testthat::expect_equal(dim(df4), c(6L, 10L)) - testthat::expect_equal(dim(df5), c(3L, 8L)) - testthat::expect_equal(dim(df6), c(6L, 11L)) - # column types testthat::expect_true(all(is.character(df1$group1), is.character(df1$group2))) testthat::expect_true(all(is.character(df2$group1), is.character(df2$group2))) @@ -430,7 +422,6 @@ testthat::test_that( dplyr::filter(.data = ., group2 == "omni", group1 == "carni") # tests - testthat::expect_equal(dim(df1), c(1L, 11L)) testthat::expect_equal(df1$mean.difference, df2$mean.difference, tolerance = 0.01) testthat::expect_equal(df1$se, df2$se, tolerance = 0.01) testthat::expect_equal(df1$t.value, df2$t.value, tolerance = 0.01) @@ -455,7 +446,6 @@ testthat::test_that( var.equal = TRUE ) - testthat::expect_equal(dim(df), c(3L, 8L)) testthat::expect_equal(df$group1, c("PG", "PG", "PG-13")) testthat::expect_equal(df$group2, c("PG-13", "R", "R")) } diff --git a/tests/testthat/test-pairwise_comparisons_within.R b/tests/testthat/test-pairwise_comparisons_within.R index 3b2bc4e..c48c61d 100644 --- a/tests/testthat/test-pairwise_comparisons_within.R +++ b/tests/testthat/test-pairwise_comparisons_within.R @@ -168,12 +168,6 @@ testthat::test_that( ) ) - # checking dimensions of the results dataframe - testthat::expect_equal(dim(df1), c(6L, 8L)) - testthat::expect_equal(dim(df2), c(6L, 8L)) - testthat::expect_equal(dim(df3), c(6L, 10L)) - testthat::expect_equal(dim(df4), c(6L, 11L)) - # checking if it is a tibble testthat::expect_is(df1, "tbl_df") testthat::expect_is(df2, "tbl_df") @@ -333,18 +327,6 @@ testthat::test_that( ) ) - # checking dimensions of the results dataframe - testthat::expect_equal(dim(df1), c(3L, 8L)) - testthat::expect_equal(dim(df2), c(3L, 8L)) - testthat::expect_equal(dim(df3), c(3L, 10L)) - testthat::expect_equal(dim(df4), c(3L, 11L)) - - # checking if it is a tibble - testthat::expect_is(df1, "tbl_df") - testthat::expect_is(df2, "tbl_df") - testthat::expect_is(df3, "tbl_df") - testthat::expect_is(df4, "tbl_df") - # columns should be same no matter the test testthat::expect_identical(df1$group1, df2$group1) testthat::expect_identical(df1$group1, df3$group1)