Test if a p-value is significant. This is specifically designed
to handle numeric output, or output from `pvalString`

1 | ```
is_significant(pvalue, alpha = 0.05)
``` |

`pvalue` |
The p-value to be tested |

`alpha` |
The significance level for comparison |

In instances where `pvalue`

has a leading '<' or '>',
the inequality is stripped and the remaining characters are coerced to
a numeric. A logical vector comparing pvalue to alpha is returned
where the value is `TRUE`

if `pvalue`

<= `alpha`

This function was built with the intent of using it to identify rows
in descriptive tables (such as `cattable`

and `conttable`

)
with significant results. These rows could then be highlighted
using bold print automatically. This might prove useful for large tables.

Benjamin Nutter

1 2 3 4 5 | ```
## Not run:
is_significant(c(.10, .06, .051, .05, .049, .02, .01))
is_significant(c("> .10", "< .05", "< 0.001"), alpha=.01)
## End(Not run)
``` |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.