signifSymbols: A simple function to associated p-values with symbols

View source: R/signifSymbols.R

signifSymbolsR Documentation

A simple function to associated p-values with symbols

Description

The signifSymbols function takes one vector of p-values and returns a vector of symbols that correspond to thresholds that can be set. Default thresholds values and symbols are the most common ones.

Usage

signifSymbols(
  pvalue,
  thresholds = c(0.1, 0.05, 0.01, 0.001),
  symbols = c(".", "*", "**", "***"),
  notsignif = "n.s."
)

Arguments

pvalue

a p-value for which a symbol is requested.

thresholds

the threshold values that define category to which symbols are assigned.

symbols

list of symbols.

notsignif

symbols for non significant p-value.

Examples

signifSymbols(.012)
signifSymbols(.008)
lapply(c(.2, .08, .04, .008, 0.0001), signifSymbols)

inSileco/letiRmisc documentation built on Sept. 16, 2022, 2:19 p.m.