stars.pval {corpora}R Documentation

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)

Arguments

x

a numeric vector of non-negative p-values

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.

Author(s)

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

Examples

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

[Package corpora version 0.6 Index]