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

Description Usage Arguments Examples

View source: R/convert_pd_to_p.R

Description

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

Usage

1
2
3
4
5
6
7
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

1
2
pd_to_p(pd = 0.95)
pd_to_p(pd = 0.95, direction = "one-sided")

DominiqueMakowski/bayestestR documentation built on July 27, 2021, 4:12 p.m.