Learn R Programming

JWileymisc (version 1.4.1)

star: Function to simplify converting p-values to asterisks

Description

Function to simplify converting p-values to asterisks

Usage

star(x, includeMarginal = FALSE)

Value

A character string with stars

Arguments

x

p values to convert to stars

includeMarginal

logical value whether to include a symbol for marginally significant >.05 but < .10 p-values. Defaults to FALSE.

Examples

Run this code
star(c(.0005, .001, .005, .01, .02, .05, .08, .1, .5, 1))

Run the code above in your browser using DataLab