| starmaker {weights} | R Documentation |
Recodes p values to stars for use in tables.
starmaker(x, p.levels=c(.001, .01, .05, .1), symbols=c("***", "**", "*", "+"))
x |
A vector of p values to be turned into stars (must be numeric). |
p.levels |
A vector of the maximum p value for each symbol used (p<p.level). |
symbols |
A vector of the symbols to be displayed for each p value. |
A vector of length equal to that of x of class character.
Josh Pasek, Assistant Professor of Communication Studies at the University of Michigan (www.joshpasek.com).
starmaker(seq(0, .15, by=.01)) cbind(p=seq(0, .15, by=.01), star=starmaker(seq(0, .15, by=.01)))