Learn R Programming

extras (version 0.7.3)

svalue: Surprisal Value

Description

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)

Value

A non-negative number.

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.

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. tools:::Rd_expr_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

Run this code
svalue(as.numeric(0:100))

Run the code above in your browser using DataLab