The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]dogado.de.

boxTest

The boxTest package provides a simple way to compare two groups using boxplots and statistical tests. It automatically checks normality (via Shapiro–Wilk test) and then applies the appropriate test:

It also generates a publication-ready boxplot with jittered points.


Installation

From GitHub (development version)

# install.packages("remotes")  # if not already installed
remotes::install_github("arka1985/boxTest")

From CRAN (once accepted)

install.packages("boxTest")

From tar.gz release

Download the .tar.gz file from Releases and install locally:

install.packages("path/to/boxTest_0.1.0.tar.gz", repos = NULL, type = "source")

Example

library(boxTest)

# Create a sample dataset: Male and Female BMI
df <- data.frame(
  gender = rep(c("Male", "Female"), each = 10),
  BMI = c(22, 24, 25, 23, 26, 28, 24, 23, 27, 25,
          21, 22, 23, 20, 24, 22, 21, 23, 22, 21)
)

# Compare BMI between Male and Female
res <- compare_two_groups(df, "BMI", "gender")

# Show the boxplot
print(res$plot)

# Normality test results
print(res$normality)

# Test summary (t-test or Mann–Whitney U)
print(res$test_summary)

Output


Authors

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.