View source: R/tef_subsetCorrel.R
tef_subsetCorrel | R Documentation |
Selects subsets of x and y vectors, and calculates the mean correlations between the two subsets.
tef_subsetCorrel(
x,
y,
method = "spearman",
returnVal = "mean",
subsample = "even_odd",
iter = 200
)
x |
vector to correlate |
y |
vector to correlate |
method |
correlation method (e.g., "spearman" or "pearson") |
returnVal |
return "mean" or (if subsample is random) "quantiles" |
subsample |
should the subsamples be "even_odd" or "random" (half of the first half, half of the second half) |
iter |
if subsample is "random", number of times the vectors are split, each half is subset, those subsets are correlated, and those correlations are averaged |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.