Learn R Programming

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

Copy Link

Version

Install

install.packages('TestsSymmetry')

Monthly Downloads

131

Version

1.0.0

License

GPL-3

Maintainer

Jiaojiao Zhou

Last Published

March 1st, 2024

Functions in TestsSymmetry (1.0.0)

n.symm.test

Sample size determination for nonparametric tests of symmetry when the center is unknown
tree_model_sign

Tree_model_sign
mod.symm.test

Wilcoxon and Sign tests for symmetry about an unknown center
getV

Getting asymptotic variance of modified wilcox test statistic
plasma.silicon

Dataset: plasma.silicon
get_quant_H0

Calculate the necessary quantities under null hypothesis
model

Tree_model