Adjust parameters for default ATC method

config_ATC(cor_fun = stats::cor, min_cor = 0, power = 1, k_neighbours = -1, group = NULL, cores = 1, ...)

Arguments

cor_fun

A function that calculates correlations from a matrix (on matrix rows).

min_cor

Cutoff for the minimal absolute correlation.

power

Power on the correlation values.

k_neighbours

Number of the closest neighbours to use.

group

A categorical variable.

cores

Number of cores.

...

Other arguments passed to ATC.

Details

This function changes the default parameters for ATC method. All the arguments in this function all pass to ATC.

Examples

# use Spearman correlation
config_ATC(cor_fun = function(m) stats::cor(m, method = "spearman"))
# use knn
config_ATC(k_neighbours = 100)