DescTools (version 0.99.8.1)

FormatSig: Significance Representation of a P-Value

Description

Create a significance representation of a p-value consisting of * and . according to the used defaults e.g. in lm.

Usage

FormatSig(x, breaks = c(0, 0.001, 0.01, 0.05, 0.1, 1), 
          labels = c("***", "** ", "*  ", ".  ", "   "))

Arguments

x
a numerical vector.
breaks
the breaks for the significance groups.
labels
the labels for the significance groups.

Value

  • The string representing the significance format of x.

See Also

FormatFix, format

Examples

Run this code
FormatSig(x=c(0.12, 0.07,0.03, 0.008, 0.000001))

Run the code above in your browser using DataLab