p_range: Create significant symbols for p-values

Description Usage Arguments Value Examples

View source: R/p_range.R

Description

Create significant symbols for p-values

Usage

1

Arguments

p

A numeric p value (usually yielded from a statistical test).

Value

A character significant symbol. * represents the p is within the range of (0.05, 0.01], ** for (0.01, 0.001], and *** for (0.001, +inf]

Examples

1
2
3
4
p_range(0.02)

library(dplyr)
t_test_one_sample(color_index, "color_index", mu = 0) %>% mutate(sig = p_range(p))

roistats documentation built on March 11, 2021, 1:07 a.m.