calc_p_vals: Calculates p-values from the permutation data as well as the...

Description Usage Arguments Value

Description

Calculates p-values from the permutation data as well as the baseline

Usage

1
calc_p_vals(dat_baseline, dat_perm, n_perm, p_tresh = 0.01)

Arguments

dat_baseline

a baseline statistics table calculated by running the aggregate_* function on the unpermuted data

dat_perm

the permuatation data

n_perm

number of permuations used to calculate dat_perm

p_tresh

p value threshold to be used

Value

a table containing the results of the permutation test. Columns: group: group id FirstLabel: first label SecondLabel: second label p_gt: fraction of permutations equal or bigger than baseline p_lt: fraction of permutations equal or less than baseline direction: is p_lt greater than p_gt? p: the smaller p value of p_gt and p_lt sig: it the p significant compared to the p_tresh? sigval: -1=if sig and direction==False, 0=if not sig, 1=if sig and direction==True


BodenmillerGroup/neighbouRhood documentation built on Sept. 9, 2021, 4:49 a.m.