Learn R Programming

mariposa (version 0.7.3)

summary.fisher_test: Summary method for Fisher's exact test results

Description

Creates a summary object that produces detailed output when printed, including the contingency table of observed frequencies and the test results table with method, exact p-value, and sample size.

Usage

# S3 method for fisher_test
summary(object, contingency_table = TRUE, results = TRUE, digits = 3, ...)

Value

A summary.fisher_test object.

Arguments

object

A fisher_test result object.

contingency_table

Logical. Show the contingency table? (Default: TRUE)

results

Logical. Show the test results table? (Default: TRUE)

digits

Number of decimal places for formatting (Default: 3).

...

Additional arguments (not used).

See Also

fisher_test for the main analysis function.

Examples

Run this code
result <- fisher_test(survey_data, row = gender, col = region)
summary(result)
summary(result, contingency_table = FALSE)

Run the code above in your browser using DataLab