Description
Tests for Symmetry when the Center of Symmetry is Unknown.
Description
Provides functionality of a statistical testing implementation whether a dataset comes from a symmetric distribution when the center of symmetry is unknown, including Wilcoxon test and sign test procedure. In addition, sample size determination for both tests is provided. The Wilcoxon test procedure is described in Vexler et al. (2023) <https://www.sciencedirect.com/science/article/abs/pii/S0167947323000579>, and the sign test is outlined in Gastwirth (1971) <https://www.jstor.org/stable/2284233>.
README.md
TestsSymmetry
Tests for symmetry when the center of symmetry is unknown
Provides functionality of implementation of statistical testing whether a dataset comes from a symmetric distribution when the center of symmetry is unknown, including Wilcoxon test and sign test procedure. In addition, sample size determination for both tests is provided.
To install this package, use the statement below in R:
devtools::install_github("jzhou54/TestsSymmetry")
# or install.packages("TestsSymmetry")
library(TestsSymmetry)
Here are some examples for the functions
- Symmetry tests
x <- rchisq(50, df = 5) # asymmtric case
y <- rnorm(n=50) # symmetric case
mod.symm.test(x, alternative="two.sided", method="wilcox")
mod.symm.test(y, alternative="two.sided", method="wilcox")
- Sample size determination
x <- rchisq(30, df = 5) # asymmtric case
n.symm.test(x, power = 0.6, method = "wilcox")
n.symm.test(x, power = 0.6, method = "sign")