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.
signifSymbols( pvalue, thresholds = c(0.1, 0.05, 0.01, 0.001), symbols = c(".", "*", "**", "***"), notsignif = "n.s." )
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. |
signifSymbols(.012)#> [1] "*"signifSymbols(.008)#> [1] "**"#> [[1]] #> [1] "n.s." #> #> [[2]] #> [1] "." #> #> [[3]] #> [1] "*" #> #> [[4]] #> [1] "**" #> #> [[5]] #> [1] "***" #>