Learn R Programming

wrappedtools (version 0.9.7)

surprisal: 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)

Value

a character vector of s-values

Arguments

p

a vector of p-values

precision

rounding level with default 1