Computes the p-value threshold for intrinsic credibility

thresholdIntrinsic(
  alpha,
  alternative = c("two.sided", "one.sided"),
  type = c("Held", "Matthews")
)

Arguments

alpha

Numeric vector of intrinsic credibility levels.

alternative

Either "two.sided" (default) or "one.sided". Specifies if the threshold is for one-sided or two-sided p-values.

type

Either "Held" (default) or "Matthews". Type of intrinsic p-value threshold, see Held (2019) and Matthews (2018) for more information.

Value

The threshold 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

thresholdIntrinsic(alpha = c(0.005, 0.01, 0.05))
#> [1] 7.194952e-05 2.697170e-04 5.574597e-03
thresholdIntrinsic(alpha = c(0.005, 0.01, 0.05), alternative = "one.sided")
#> [1] 0.0001348585 0.0005010211 0.0100046269