Learn R Programming

corpora (version 0.6)

stars.pval: Show p-values as significance stars (corpora)

Description

A simple utility function that converts p-values into the customary significance stars.

Usage

stars.pval(x)

Value

A character vector with significance stars corresponding to the p-values.

Significance levels are *** (\(p < .001\)), ** (\(p < .01\)), * (\(p < .05\)) and . (\(p < .1\)). For non-significant p-values (\(p \ge .1\)), an empty string is returned.

Arguments

x

a numeric vector of non-negative p-values

Author

Stephanie Evert (https://purl.org/stephanie.evert)

Examples

Run this code
stars.pval(c(0, .007, .01, .04, .1))

Run the code above in your browser using DataLab