round_ps: Helper function which rounds p-values

Description Usage Arguments Value Author(s) Examples

Description

p-values are rounded in a sane way: .99 - .01 to two digits, < .01 to three digits, < .001 to four digits.

Usage

1

Arguments

x

a numeric vector

Value

A character vector with the same length of x.

Author(s)

Henrik Singmann

Examples

1
2
3
4
5
6
7
round_ps(runif(10))

round_ps(runif(10, 0, .01))

round_ps(runif(10, 0, .001))

round_ps(0.0000000099)

Example output

Loading required package: lme4
Loading required package: Matrix
************
Welcome to afex. For support visit: http://afex.singmann.science/
- Functions for ANOVAs: aov_car(), aov_ez(), and aov_4()
- Methods for calculating p-values with mixed(): 'KR', 'S', 'LRT', and 'PB'
- 'afex_aov' and 'mixed' objects can be passed to emmeans() for follow-up tests
- NEWS: library('emmeans') now needs to be called explicitly!
- Get and set global package options with: afex_options()
- Set orthogonal sum-to-zero contrasts globally: set_sum_contrasts()
- For example analyses see: browseVignettes("afex")
************

Attaching package: 'afex'

The following object is masked from 'package:lme4':

    lmer

 [1] ".94" ".23" ".77" ".64" ".16" ".62" ".53" ".45" ".54" ".59"
 [1] ".008"  ".0001" ".0007" ".0005" ".003"  ".0009" ".007"  ".002"  ".003" 
[10] ".002" 
 [1] ".0010"  ".0008"  ".0008"  ".0010"  ".0009"  ".0008"  "<.0001" ".0006" 
 [9] ".0005"  ".0006" 
[1] "<.0001"

afex documentation built on May 2, 2019, 6:08 p.m.