Skip to contents

Generate array of null distribution of region pairwise correlation differences.

Usage

permute_corr_diff_distrib(
  df,
  correlation_list_name_1,
  correlation_list_name_2,
  n_shuffle = n_shuffle,
  seed = 5,
  method = "pearson",
  ...
)

Arguments

seed

random seed for replication

method

(str, default = "pearson", options = c("pearson", "spearman")) Specifies the type of correlations to compute. Spearman correlations are the Pearson linear correlations computed on the ranks of non-missing elements, using midranks for ties. See also Hmisc::rcorr()