star: A function that transforms pvalues in stars ***

View source: R/star.R

starR Documentation

A function that transforms pvalues in stars ***

Description

A function that transforms pvalues in stars ***

Usage

star(p.val, probs = c(0.001, 0.01, 0.05, 0.1))

Arguments

p.val

numeric, the value of the pvalue.

probs

a vector of the four probabilities of changes in increasing order.

Value

A character string with stars, dot or blank space.

Author(s)

Julien Bousquet (2021)

Examples

star(0.015)
#for a vector of p-values
pvals <- c(0.01, 0.05, 0.015, 0.5)
sapply(pvals, star)

Antoine-Masse/KefiR documentation built on Feb. 22, 2024, 5:54 a.m.