Description Usage Arguments Value

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

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

`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 |

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

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.