Computes the p-value for intrinsic credibility

pIntrinsic(
  p = z2p(z, alternative = alternative),
  z = NULL,
  alternative = c("two.sided", "one.sided", "less", "greater"),
  type = c("Held", "Matthews")
)

Arguments

p

numeric vector of p-values.

z

numeric vector of z-values. Default is NULL.

alternative

Either "two.sided" (default) or "one.sided". Specifies if the p-value is two-sided or one-sided. If the p-value is one-sided, then a one-sided p-value for intrinsic credibility is computed.

type

Type of intrinsic p-value. Default is "Held" as in Held (2019). The other option is "Matthews" as in Matthews (2018).

Value

p-values for intrinsic credibility.

References

Matthews, R. A. J. (2018). Beyond 'significance': principles and practice of the analysis of credibility. Royal Society Open Science, 5, 171047. doi:10.1098/rsos.171047

Held, L. (2019). The assessment of intrinsic credibility and a new argument for p < 0.005. Royal Society Open Science, 6, 181534. doi:10.1098/rsos.181534

Author

Leonhard Held

Examples

p <- c(0.005, 0.01, 0.05)
pIntrinsic(p = p)
#> [1] 0.04715865 0.06854815 0.16577627
pIntrinsic(p = p, type = "Matthews")
#> [1] 0.02733129 0.04286821 0.12335856
pIntrinsic(p = p, alternative = "one.sided")
#> [1] 0.03427407 0.04998734 0.12239707
pIntrinsic(p = p, alternative = "one.sided", type = "Matthews")
#> [1] 0.02143411 0.03371017 0.09798756

pIntrinsic(z = 2)
#> [1] 0.1572992 0.1072866 0.9839121 0.1072866