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

```
pd_to_p(pd = 0.95)
#> [1] 0.1
pd_to_p(pd = 0.95, direction = "one-sided")
#> [1] 0.05
```