filter_cc {CausCor}R Documentation

Make list of A-B pair causal correlations

Description

Make list of A-B pair causal correlations

Usage

filter_cc(
  a_mat,
  b_mat,
  a_category,
  b_category,
  min_cor,
  min_r2,
  min_sample,
  max_sample = ncol(a_mat) - 1,
  direction = T
)

Arguments

a_mat

Matrix of measurements of A for each sample.

b_mat

Matrix of measurements of B for each sample.

a_category

Category name of A.

b_category

Category name of B.

min_cor

Minimum spearman correlation coefficient.

min_r2

Minimum R2 score.

min_sample

Minimum number of samples.

max_sample

Maximum number of samples. The default is the total number of samples.

direction

Extract only directional associations where a change in category A causes a change in category B. The default is True.


[Package CausCor version 0.1.3 Index]