tef_subsetCorrel: Find mean correlations of subsets of vectors

View source: R/tef_subsetCorrel.R

tef_subsetCorrelR Documentation

Find mean correlations of subsets of vectors

Description

Selects subsets of x and y vectors, and calculates the mean correlations between the two subsets.

Usage

tef_subsetCorrel(
  x,
  y,
  method = "spearman",
  returnVal = "mean",
  subsample = "even_odd",
  iter = 200
)

Arguments

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


akcochrane/TEfits documentation built on June 12, 2025, 11:10 a.m.