psw | R Documentation |
This function will generate the output for a Wilcoxon Signed-Rank Test for non-parametric paired samples
psw(x, y = NULL, z = NULL, tails = 2)
x |
A data frame column with the first variable to compare, a formula can also be passed in (~Var or Var~1) |
y |
A data frame column with the second variable to compare (~Var or Var~1), if a formula is passed in a data frame will be accepted |
z |
A data frame if formulas are used in x and y and data is not piped in |
tails |
an integer indicating whether the test is one-tailed '1' or two-tailed '2' |
A list of output for reporting $analysis_type, $results, $descriptive_statistics
psw_results <- psw_data %>% psw(~scones,~tea)
psw_results <- psw(psw_data$black_tea, psw_data$green_tea, tails = 1)
psw_results <- psw(psw_data, ~scones, ~tea)
psw_results <- psw(~scones, ~tea, psw_data)
psw_results <- psw(psw_data$black_tea, psw_data$green_tea)
psw_results <- psw(scones ~ tea, psw_data_tall)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.