Skip to contents

The surprisal value (Greenland 2019) is the pvalue expressed in terms of how many consecutive heads would have to be thrown on a fair coin in a single attempt to achieve the same probability.

Usage

svalue(x, threshold = 0, na_rm = FALSE)

Arguments

x

A numeric object of MCMC values.

threshold

A number of the threshold value.

na_rm

A flag specifying whether to remove missing values.

Value

A non-negative number.

References

Greenland, S. 2019. Valid P -Values Behave Exactly as They Should: Some Misleading Criticisms of P -Values and Their Resolution With S -Values. The American Statistician 73(sup1): 106–114. doi:10.1080/00031305.2018.1529625 .

See also

Other summary: kurtosis(), lower(), pvalue(), pzeros(), skewness(), upper(), variance(), xtr_mean(), xtr_median(), xtr_sd(), zeros(), zscore()

Examples

svalue(as.numeric(0:100))
#> [1] 5.672425