A nonpametric test for center. The sign test compares the median to a value.
Usage
signtest(x, m = NULL, alpha = NULL,
alternative =c("two.sided", "greater", "less"), conf.level=NULL, exact = FALSE)
Arguments
x
A vector of sample data.
m
The median to test. Defaults to 0.
alpha
The Significance level, defaults to 0.05.
alternative
Defaults to two.sided. Used to determine what type of test to run.
conf.level
Defaults to NULL. Used to construct a confidence interval. Input as a decimal.
exact
Defaults to FALSE. Used to determine whether to run the exact procedure or a large sample approximation.
Value
B
The Test Statistic
Significance Level
Returns the alpha value.
P-value
Returns the p-value from the Sign Test.
Confidence Interval
The confidence interval requested.
References
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.