'pvalStars' creates a graphical representation of p-value(s) (AKA "significance stars").

pvalStars(p, width = NULL, right = TRUE)

Arguments

p

p-value(s)

width

width of text summary (number of characters), if not NULL, the summary gets padded with spaces to consist of at least width characters

right

the type of padding

Value

a vector of character strings representing the significance of 'p'

Examples

p<-c(1,.1,.05,.01,.001,.000001,NA) cbind(p,pvalStars(p))
#> p #> [1,] "1" " " #> [2,] "0.1" "." #> [3,] "0.05" "*" #> [4,] "0.01" "**" #> [5,] "0.001" "***" #> [6,] "1e-06" "***" #> [7,] NA "?"