Skip to contents

Returns the settings for a given p-value format style.

Usage

get_p_format_style(style = "default")

Arguments

style

Character string specifying the style. One of: "default", "apa", "nejm", "lancet", "ama", "graphpad", "scientific".

Value

A list containing: digits, leading.zero, min.threshold, use.scientific, description.

Examples

get_p_format_style("apa")
#> $digits
#> [1] 3
#> 
#> $leading.zero
#> [1] FALSE
#> 
#> $min.threshold
#> [1] 0.001
#> 
#> $use.scientific
#> [1] FALSE
#> 
#> $description
#> [1] "APA Style (Psychology, Social Sciences)"
#> 
get_p_format_style("nejm")
#> $digits
#> [1] 3
#> 
#> $leading.zero
#> [1] TRUE
#> 
#> $min.threshold
#> [1] 0.001
#> 
#> $use.scientific
#> [1] FALSE
#> 
#> $description
#> [1] "New England Journal of Medicine"
#>