powered by
A nonpametric test for center. The sign test compares the median to a value.
signtest(x, m = NULL, alpha = NULL, alternative =c("two.sided", "greater", "less"), conf.level=NULL, exact = FALSE)
A vector of sample data.
The median to test. Defaults to 0.
The Significance level, defaults to 0.05.
Defaults to two.sided. Used to determine what type of test to run.
Defaults to NULL. Used to construct a confidence interval. Input as a decimal.
Defaults to FALSE. Used to determine whether to run the exact procedure or a large sample approximation.
The Test Statistic
Returns the alpha value.
Returns the p-value from the Sign Test.
The confidence interval requested.
Higgins, J. J. (2005). An Introduction to modern nonparametric statistics. Belmont: Thomson Brooks/Cole.
Wiley Series in Probability and Statistics: Nonparametric Statistical Methods (3rd Edition). (2013). John Wiley & Sons.
# NOT RUN { ## Run the Sign Test on the vector. signtest(c(1.8, 3.3, 5.65, 2.25, 2.5, 3.5, 2.75, 3.25, 3.10, 2.70, 3, 4.75, 3.4), m=3.5) # }
Run the code above in your browser using DataLab