pIntrinsic: Computes the p-value for intrinsic credibility

View source: R/pIntrinsic.R

pIntrinsicR Documentation

Computes the p-value for intrinsic credibility

Description

Computes the p-value for intrinsic credibility

Usage

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.

Author(s)

Leonhard Held

References

Matthews, R. A. J. (2018). Beyond 'significance': principles and practice of the analysis of credibility. Royal Society Open Science, 5, 171047. \Sexpr[results=rd]{tools:::Rd_expr_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. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1098/rsos.181534")}

Examples

p <- c(0.005, 0.01, 0.05)
pIntrinsic(p = p)
pIntrinsic(p = p, type = "Matthews")
pIntrinsic(p = p, alternative = "one.sided")
pIntrinsic(p = p, alternative = "one.sided", type = "Matthews")

pIntrinsic(z = 2)

ReplicationSuccess documentation built on April 3, 2023, 5:11 p.m.