Description Usage Arguments Value Author(s) Examples

This function takes a vector of statistics and calculates the empirical p-value, that is, how many fall on the other side of zero. It calculates a two-tailed p-value.

1 | ```
empirical_pvalue(x, na.rm = TRUE)
``` |

`x` |
a data vector to operate on |

`na.rm` |
Logical whether to remove NA values. Defaults to |

a named vector with the number of values falling at or below zero, above zero, and the empirical p-value.

Joshua F. Wiley <[email protected]>

1 | ```
empirical_pvalue(rnorm(100))
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.