calc_p {cape}R Documentation

Calculate P Values for Interactions Based on Permutations

Description

Calculate P Values for Interactions Based on Permutations

Usage

calc_p(
  data_obj,
  pval_correction = c("holm", "hochberg", "hommel", "bonferroni", "BH", "BY", "fdr",
    "none")
)

Arguments

data_obj

A Cape data object

pval_correction

One of "holm", "fdr", "lfdr" or "none", indicating whether the p value correction method used should be the Holm step-down procedure, false discovery rate, local false discovery, or no correction rate respectively.

Value

The data object is returned with a new table called var_to_var_p_val. This table is the same as var_to_var_influences, but with p value and adjusted p value columns appended.


[Package cape version 3.1.2 Index]