powered by
Recodes p values to stars for use in tables.
starmaker(x, p.levels=c(.001, .01, .05, .1), symbols=c("***", "**", "*", "+"))
A vector of p values to be turned into stars (must be numeric).
A vector of the maximum p value for each symbol used (p<p.level).
A vector of the symbols to be displayed for each p value.
A vector of length equal to that of x of class character.
x
character
# NOT RUN { starmaker(seq(0, .15, by=.01)) cbind(p=seq(0, .15, by=.01), star=starmaker(seq(0, .15, by=.01))) # }
Run the code above in your browser using DataLab