pretty_round_p_value: Pretty round p-value

Description Usage Arguments Examples

View source: R/pretty_round_p_value.R

Description

Pretty round p-value

Usage

1
2
3
4
5
pretty_round_p_value(
  p_value_vector = NULL,
  round_digits_after_decimal = 3,
  include_p_equals = FALSE
)

Arguments

p_value_vector

one number or a numeric vector

round_digits_after_decimal

round to nth digit after decimal

include_p_equals

if TRUE, output will be a string of mathematical expression including "p", e.g., "p < .01"

Examples

1
2
3
pretty_round_p_value(p_value_vector = 0.049,
round_digits_after_decimal = 2, include_p_equals = FALSE)
pretty_round_p_value(c(0.0015, 0.0014), include_p_equals = TRUE)

ezr documentation built on Nov. 25, 2020, 5:09 p.m.