calc_p: Calculate P Values for Interactions Based on Permutations

Description Usage Arguments Value Examples

View source: R/calc_p.R

Description

Calculate P Values for Interactions Based on Permutations

Usage

1
2
3
4
5
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

1
2
3
4
## Not run: 
data_obj <- calc_p(data_obj, "fdr")

## End(Not run)

cape documentation built on Feb. 10, 2021, 5:06 p.m.