config_ATC.Rd
Adjust parameters for default ATC method
config_ATC(cor_fun = stats::cor, min_cor = 0, power = 1, k_neighbours = -1, group = NULL, cores = 1, ...)
A function that calculates correlations from a matrix (on matrix rows).
Cutoff for the minimal absolute correlation.
Power on the correlation values.
Number of the closest neighbours to use.
A categorical variable.
Number of cores.
Other arguments passed to ATC
.
This function changes the default parameters for ATC method. All the arguments in this function all pass to ATC
.
# use Spearman correlation
config_ATC(cor_fun = function(m) stats::cor(m, method = "spearman"))
# use knn
config_ATC(k_neighbours = 100)