APC correction. Extended version, aware of subdivision of the dataset.

APC.block(
  results,
  divide.by = c("int_type", "direction"),
  column = "score",
  out.column = "APC",
  verbose = FALSE,
  ...
)

Arguments

results

table of pairwise interactions

column

Which column to use as score

do.ASC

whether calculating APC or ASC

do.fix_positivity

Whether setting negative scores to 0

use.median

Use median instead of average

Value

APC scores