XY {peramo} | R Documentation |
Permutation Test for Correlation Between Paired Samples
Description
XY
performs permutation test on correlation coefficients.
Usage
XY(a, b, rand = 9999, seed = 1, method = c("pearson", "kendall", "spearman"))
Arguments
a |
a numeric vector, the first variable. |
b |
a numeric vector, the second variable. |
rand |
an integer, the number of randomization samples. The default value is 9999. |
seed |
an integer, the seed for random number generation. Setting a seed
ensures the reproducibility of the result. See |
method |
correlation coefficient, "pearson", "kendall", or "spearman". |
Value
XY
returns an one-row data frame with 2 columns:
cor |
the correlation coefficient. |
pval |
the p-value. |
See Also
Examples
with(subset(ctm_Cu, run == "Jan"), XY(sediment, porewater))
[Package peramo version 0.1.3 Index]