surprisal {wrappedtools} | R Documentation |
Compute surprisal aka Shannon information from p-values
Description
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
Usage
surprisal(p, precision = 1)
Arguments
p |
a vector of p-values |
precision |
rounding level with default 1 |
Value
a character vector of s-values
[Package wrappedtools version 0.9.5 Index]