render.sigr_fishertest: Format fisher.test (test of categorical independence).

View source: R/FisherTest.R

render.sigr_fishertestR Documentation

Format fisher.test (test of categorical independence).

Description

Format fisher.test (test of categorical independence).

Usage

## S3 method for class 'sigr_fishertest'
render(
  statistic,
  ...,
  format,
  statDigits = 4,
  sigDigits = 4,
  pLargeCutoff = 0.05,
  pSmallCutoff = 1e-05
)

Arguments

statistic

wrapped Fisher test

...

extra arguments (not used)

format

if set the format to return ("html", "latex", "markdown", "ascii", "docx", ...)

statDigits

integer number of digits to show in summaries.

sigDigits

integer number of digits to show in significances.

pLargeCutoff

value to declare non-significance at or above.

pSmallCutoff

smallest value to print

Value

formatted string and fields

Examples


d <- data.frame(x=c('b','a','a','a','b','b','b'),
                y=c('1','1','1','2','2','2','2'))
ft <- fisher.test(table(d))
wrapFisherTest(ft)



WinVector/sigr documentation built on Aug. 29, 2023, 3:57 a.m.