pval_smartformat: nice formatting for p-values

Description Usage Arguments Author(s) Examples

Description

nice formatting for p-values

Usage

1
pval_smartformat(p, d = 3, sd = 5)

Arguments

p

a numeric pvalue

d

the digits less than which should be displayed as less than

sd

scientific digits for round

Author(s)

Joshua F. Wiley <josh@elkhartgroup.com>

Examples

1
2
varian:::pval_smartformat(c(1, .15346, .085463, .05673, .04837, .015353462,
  .0089, .00164, .0006589, .0000000053326), 3, 5)

Example output

Loading required package: rstan
Loading required package: ggplot2
Loading required package: StanHeaders
rstan (Version 2.17.3, GitRev: 2e1f913d3ca3)
For execution on a local, multicore CPU with excess RAM we recommend calling
options(mc.cores = parallel::detectCores()).
To avoid recompilation of unchanged Stan programs, we recommend calling
rstan_options(auto_write = TRUE)
 [1] "1.000"  ".153"   ".085"   ".057"   ".048"   ".015"   ".009"   ".002"  
 [9] "< .001" "< .001"

varian documentation built on May 2, 2019, 6:09 a.m.