pvalueAPA: APA Style P-value

Description Usage Arguments Value

View source: R/pvalueAPA.R

Description

P-values are formatted to APA format from a numeric value using pvalueAPA

Usage

1
pvalueAPA(p, inline = FALSE, mindigits = 2, maxdigits = 3)

Arguments

p

a numeric value between 0 and 1

inline

If TRUE returns LaTeX equation (e.g., $p=.02$). If false (default), only the number is returned.

mindigits

The minimum number digits for rounding.

maxdigits

The maximum number of digits for round small numbers.

Value

APA formatted p-value


wjschne/APA6 documentation built on Oct. 17, 2018, 3:33 a.m.