pval_to_stars: Convert p-values to stars

View source: R/stats.R

pval_to_starsR Documentation

Convert p-values to stars

Description

Convert p-values to stars according to map legend p <= 0.001'', 0.001 '', 0.01 '**', 0.05 ''

Usage

pval_to_stars(pvals)

Arguments

pvals

A numeric vector of pvals

Value

A character vector with stars representing p-values

Examples

runif(10,min = 0, 0.06)
pval_to_stars(c(0.0001, 0.00012, 0.002, 0.049, 0.05, 0.06))
Output: '**** ***  **   *    *'

kazeera/hourglass documentation built on April 5, 2025, 7:18 a.m.