Skip to contents

Wrapper de stats::fisher.test() para tabelas de contingencia.

Usage

rnp_teste_fisher(tabela, digits = 4L)

Arguments

tabela

Tabela/matriz de contingencia (2x2 ou r x c).

digits

Inteiro.

Value

tibble com p_valor e, no caso 2x2, odds_ratio, ic_inf, ic_sup.

See also

Examples

rnp_teste_fisher(matrix(c(8, 2, 1, 5), 2, 2))
#> # A tibble: 1 × 4
#>   p_valor odds_ratio ic_inf ic_sup
#>     <dbl>      <dbl>  <dbl>  <dbl>
#> 1   0.035       15.5   1.01  1050.