Skip to contents

Show z-value table

Usage

show_z_table(z = NULL, p = 0.05, alternative = "two.sided")

Arguments

z

Numeric vector of quantile

p

Numeric probability

alternative

Character One of c("two.sided","greater","less")

Value

An object of class "flextable"

Examples

show_z_table()
#> a flextable object.
#> col_keys: `p`, `0.800`, `0.500`, `0.200`, `0.100`, `0.050`, `0.020`, `0.010`, `0.002` 
#> header has 1 row(s) 
#> body has 1 row(s) 
#> original dataset sample: 
#>   p  0.800  0.500  0.200  0.100  0.050  0.020  0.010  0.002
#> 1 z -0.253 -0.674 -1.282 -1.645 -1.960 -2.326 -2.576 -3.090
show_z_table(z=1.4)
#> a flextable object.
#> col_keys: `z`, `-3.090`, `-2.576`, `-2.326`, `-1.960`, `-1.645`, `-1.400`, `-1.282`, `-0.674`, `-0.253` 
#> header has 1 row(s) 
#> body has 1 row(s) 
#> original dataset sample: 
#>   z -3.090 -2.576 -2.326 -1.960 -1.645 -1.400 -1.282 -0.674 -0.253
#> 1 p  0.002  0.010  0.020  0.050  0.100  0.162  0.200  0.500  0.800
show_z_table(z=-1.39234)
#> a flextable object.
#> col_keys: `z`, `-3.090`, `-2.576`, `-2.326`, `-1.960`, `-1.645`, `-1.392`, `-1.282`, `-0.674`, `-0.253` 
#> header has 1 row(s) 
#> body has 1 row(s) 
#> original dataset sample: 
#>   z -3.090 -2.576 -2.326 -1.960 -1.645 -1.392 -1.282 -0.674 -0.253
#> 1 p  0.002  0.010  0.020  0.050  0.100  0.164  0.200  0.500  0.800
show_z_table(p=0.160)
#> a flextable object.
#> col_keys: `p`, `0.800`, `0.500`, `0.200`, `0.160`, `0.100`, `0.050`, `0.020`, `0.010`, `0.002` 
#> header has 1 row(s) 
#> body has 1 row(s) 
#> original dataset sample: 
#>   p  0.800  0.500  0.200  0.160  0.100  0.050  0.020  0.010  0.002
#> 1 z -0.253 -0.674 -1.282 -1.405 -1.645 -1.960 -2.326 -2.576 -3.090