calc_p: Calculate P Values for Interactions Based on Permutations

View source: R/calc_p.R

calc_pR 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.

Examples

## Not run: 
data_obj <- calc_p(data_obj, "fdr")

## End(Not run)

cape documentation built on May 20, 2022, 1:06 a.m.