Tests for Symmetry when the Center of Symmetry is Unknown

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>.


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

  1. 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")
  1. 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")

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("TestsSymmetry")

1.0.0 by Jiaojiao Zhou, 3 years ago


Browse source code at https://github.com/cran/TestsSymmetry


Authors: Jiaojiao Zhou [aut, cre] , Xinyu Gao [aut] , Albert Vexler [aut]


Documentation:   PDF Manual  


GPL-3 license


Imports Rcpp, MASS, e1071, rpart

Linking to Rcpp


See at CRAN