Description Usage Arguments Details Value Examples
View source: R/statistical_tests_and_estimates.R
A wrapper for cor.test function, except if spearman selected and ties in at least one variable, in which case this is a wrapper for coin::spreaman_test in with approximate method.
1 2 3 4 5 6 7 8 9 |
x |
numeric vector (can include NA values) |
y |
numeric vector (can include NA values) |
method |
a character string indicating which correlation coefficient is to be used for the test. One of "pearson", "kendall", or "spearman", can be abbreviated |
seed |
seed (only used if |
B |
number of reps (only used if |
exact |
Should exact method be used. Ingorned it |
verbose |
a logical variable indicating if warnings and messages should be displayed |
To always get reproducible results when using approximate method we need to set seed inside of the call, and order the data
spearman_test pvalue
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.