Description Usage Arguments Value See Also Examples
Performs One Sample and Two Sample Wilcoxon Tests on a given dataset. The data can be a mixture of numric and factor variables. The results are outputed as a data frame. Furthermore the results an be saved as .csv file to a specified directory.
1 2 3 |
dataset |
A dataset on which Wilcoxon Tests are performed. |
y_index |
An integer value, the column index of the response variable, the default is NULL. |
y_name |
A character value, the column name of the response variable, the default is NULL. |
mu |
An numeric value specifying the median |
alternative |
The type of hypothesis being tested; two.sided, greater, less. The default is "two.sided" |
conf.level |
The level of confidence used in the Wilcoxon Test, default is 0.95 |
paired |
Logical value indicating a paired Wilcoxon Test |
file_name |
A character object indicating the file name when saving the data frame. The default is NULL. The name must include the .csv suffixs. |
directory |
A character object specifying the directory where the data frame is to be saved as a .csv file. The default is NULL. |
Outputs the T-test information as a data frame.
tests_chisq
, tests_cors
, tests_ks
, tests_norm
, tests_proptest
, tests_t
, tests_var
1 2 3 4 5 6 7 8 9 10 | #-- Example Lung Capcity Data --#
# Perform Wilicoxon tests on the entire dataset
tests_wilcoxon(dataset = lungcap)
# Perform Wilicon=xon tests in relation to the second column.
tests_wilcoxon(dataset = lungcap, y_index = 2)
# Perform Wilcoxon tests in relation to the 'Age' Column.
tests_wilcoxon(dataset = lungcap, y_name = "Age")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.