View source: R/basefunctions.R

surprisal | R Documentation |

`surprisal`

takes p-values and returns s, a value representing the
number of consecutive heads on a fair coin, that would be as surprising
as the p-value

surprisal(p, precision = 1)

`p` |
a vector of p-values |

`precision` |
rounding level with default 1 |

a character vector of s-values

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.