Skip to contents

Show chisquare table

Usage

show_x2_table(DF = 1, x2 = NULL, p = 0.05)

Arguments

DF

Numeric degree of freedom

x2

Numeric vector of chi-square value

p

Numeric probability

Value

An object of class "flextable"

Examples

show_x2_table(DF=2,x2=1.5)
#> a flextable object.
#> col_keys: `df`, `0.995`, `0.990`, `0.975`, `0.950`, `0.900`, `0.750`, `0.500`, `0.472`, `0.250`, `0.100`, `0.050`, `0.025`, `0.010`, `0.005`, `0.001` 
#> header has 1 row(s) 
#> body has 5 row(s) 
#> original dataset sample: 
#>   df 0.995 0.990 0.975 0.950 0.900 0.750 0.500 0.472 0.250 0.100  0.050  0.025
#> 1  1 0.000 0.000 0.001 0.004 0.016 0.102 0.455 0.516 1.323 2.706  3.841  5.024
#> 2  2 0.010 0.020 0.051 0.103 0.211 0.575 1.386 1.500 2.773 4.605  5.991  7.378
#> 3  3 0.072 0.115 0.216 0.352 0.584 1.213 2.366 2.516 4.108 6.251  7.815  9.348
#> 4  4 0.207 0.297 0.484 0.711 1.064 1.923 3.357 3.536 5.385 7.779  9.488 11.143
#> 5  5 0.412 0.554 0.831 1.145 1.610 2.675 4.351 4.556 6.626 9.236 11.070 12.833
#>    0.010  0.005  0.001
#> 1  6.635  7.879 10.828
#> 2  9.210 10.597 13.816
#> 3 11.345 12.838 16.266
#> 4 13.277 14.860 18.467
#> 5 15.086 16.750 20.515
show_x2_table(p=0.05)
#> a flextable object.
#> col_keys: `df`, `0.995`, `0.990`, `0.975`, `0.950`, `0.900`, `0.750`, `0.500`, `0.250`, `0.100`, `0.050`, `0.025`, `0.010`, `0.005`, `0.001` 
#> header has 1 row(s) 
#> body has 5 row(s) 
#> original dataset sample: 
#>   df 0.995 0.990 0.975 0.950 0.900 0.750 0.500 0.250 0.100  0.050  0.025  0.010
#> 1  1 0.000 0.000 0.001 0.004 0.016 0.102 0.455 1.323 2.706  3.841  5.024  6.635
#> 2  2 0.010 0.020 0.051 0.103 0.211 0.575 1.386 2.773 4.605  5.991  7.378  9.210
#> 3  3 0.072 0.115 0.216 0.352 0.584 1.213 2.366 4.108 6.251  7.815  9.348 11.345
#> 4  4 0.207 0.297 0.484 0.711 1.064 1.923 3.357 5.385 7.779  9.488 11.143 13.277
#> 5  5 0.412 0.554 0.831 1.145 1.610 2.675 4.351 6.626 9.236 11.070 12.833 15.086
#>    0.005  0.001
#> 1  7.879 10.828
#> 2 10.597 13.816
#> 3 12.838 16.266
#> 4 14.860 18.467
#> 5 16.750 20.515