surprisal: Compute surprisal aka Shannon information from p-values

View source: R/basefunctions.R

surprisalR 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


wrappedtools documentation built on Sept. 1, 2022, 5:06 p.m.