One-sample Wilcoxon test
one_wilcoxon_inference.RdPerform Wilcoxon's signed-rank test on a single sample
Usage
one_wilcoxon_inference(
formula,
data,
alternative = c("two.sided", "less", "greater"),
null = 0,
conf.level = 0.95
)Arguments
- formula
a formula of the form
~ yory ~ 1, whereyis a numeric variable. To perform test within subgroups, usey ~ xory ~ 1 | g, or eveny ~ x | g, wherexandgare factor variables.- data
a data frame containing the values in the formula.
- alternative
character string specifying the alternative hypothesis, must be one of "
two.sided" (default), "greater" or "less".- null
a number specifying the null proportion for testing a null hypothesis; if not specified, a null of a center at 0 is used.
- conf.level
confidence level of the returned confidence interval. Must be a single number between 0 and 1.