pIntrinsic: Computes the p-value for intrinsic credibility

Description Usage Arguments Value Author(s) References Examples

View source: R/pIntrinsic.R

Description

The p-value for intrinsic credibility is computed.

Usage

1
2
pIntrinsic(p = z2p(z, alternative = alternative), z = NULL, alternative = "two.sided", 
           type = "Held")

Arguments

p

A vector of p-values, is calculated from z, if necessary.

z

A vector of z-values, default is NULL

alternative

Either "one.sided" or "two.sided". Defaults to "two.sided". Specifies if the p-value is one-sided or two-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

The p-value 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. https://doi.org/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. https://dx.doi.org/10.1098/rsos.181534

Examples

1
2
3
4
5
6
p <- c(0.005, 0.01, 0.05)
z <- c(2, 3, 4)
pIntrinsic(p = p)
pIntrinsic(p = p, type = "Matthews")
pIntrinsic(p = p, alternative = "one.sided")
pIntrinsic(p = p, alternative = "one.sided", type = "Matthews")

ReplicationSuccess documentation built on Dec. 2, 2020, 3 p.m.