wilcoxon | R Documentation |
Constructor for a Wilcoxon test (simple wrapper for wilcox.test
).
wilcoxon(x, type = c("both", "greater", "less"), mu = 0) ## S3 method for class 'wilcoxon' test_statistic(x, ...) ## S3 method for class 'wilcoxon' p_value(x, ...)
x |
numeric vector representing a time-series. |
type |
direction to test (both, increasing, or decreasing). |
mu |
baseline value (null hypothesis) |
... |
further arguments passed to or from other methods. |
object of class wilcoxon
.
test_statistic(wilcoxon)
: Extract test statistic V
p_value(wilcoxon)
: Extract p-value
wilcox.test
, 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.