bayestestR (version 0.5.3)

pd_to_p: Convert between Probability of Direction (pd) and p-value.

Description

Enables a conversion between Probability of Direction (pd) and p-value.

Usage

pd_to_p(pd, direction = "two-sided", ...)

p_to_pd(p, direction = "two-sided", ...)

convert_p_to_pd(p, direction = "two-sided", ...)

convert_pd_to_p(pd, direction = "two-sided", ...)

Arguments

pd

A Probability of Direction (pd) value (between 0 and 1).

direction

What type of p-value is requested or provided. Can be "two-sided" (default, two tailed) or "one-sided" (one tailed).

...

Arguments passed to or from other methods.

p

A p-value.

Examples

Run this code
# NOT RUN {
pd_to_p(pd = 0.95)
pd_to_p(pd = 0.95, direction = "one-sided")
# }

Run the code above in your browser using DataCamp Workspace