starsVector function

Stars for p-values

Stars for p-values

This function assigns stars (associated with different significance levels) to p-values.

starsVector(p_value)

Arguments

  • p_value: vector of values between 0 and 1 representing p-values.

Returns

The function returns a string vector of stars assigned according to the rules described in 'Details' section.

Details

Three stars are assigned to p-values not greater than 0.01. Two stars are assigned to p-values greater than 0.01 and not greater than 0.05. One star is assigned to p-values greater than 0.05 and not greater than 0.1.

Examples

p_value <- c(0.002, 0.2, 0.03, 0.08) starsVector(p_value)
  • Maintainer: Bogdan Potanin
  • License: GPL (>= 2)
  • Last published: 2024-09-26

Useful links