Test if a p-value is significant. This is specifically designed
to handle numeric output, or output from
is_significant(pvalue, alpha = 0.05)
The p-value to be tested
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
This function was built with the intent of using it to identify rows
in descriptive tables (such as
with significant results. These rows could then be highlighted
using bold print automatically. This might prove useful for large tables.
1 2 3 4 5
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.