Learn R Programming

miscset (version 1.0.0)

p2star: P Value Significance Level Indicator

Description

Transform p-values to character (e.g. stars) indicators by significance levels with the function symnum.

Usage

p2star(p, breaks = c(0, 0.001, 0.01, 0.05, 0.1, 1), symbols = c("***", "**", "*", ".", "n.s."))

Arguments

p
Vector with p values
breaks
The breaks from min (0) to max (1).
symbols
Symbols to use for values between breaks from min to max.

Examples

Run this code
#

p2star(c(1e-5,.1,.9))

#

Run the code above in your browser using DataLab