powered by
Constructor for a Wilcoxon test (simple wrapper for wilcox.test).
wilcox.test
wilcoxon(x, type = c("both", "greater", "less"), mu = 0)# S3 method for wilcoxon test_statistic(x, ...)# S3 method for wilcoxon p_value(x, ...)
# S3 method for wilcoxon test_statistic(x, ...)
# S3 method for wilcoxon p_value(x, ...)
object of class wilcoxon.
wilcoxon
numeric vector representing a time-series.
direction to test (both, increasing, or decreasing).
baseline value (null hypothesis)
further arguments passed to or from other methods.
test_statistic(wilcoxon): Extract test statistic V
test_statistic(wilcoxon)
p_value(wilcoxon): Extract p-value
p_value(wilcoxon)
wilcox.test, p_value, test_statistic
p_value
test_statistic
# create wilcoxon object w <- wilcoxon(c(9, 4, 7, 5, 3), type = "less") # get test statistic V test_statistic(w) # get p-value p_value(w)
Run the code above in your browser using DataLab