Learn R Programming

mariposa (version 0.7.3)

summary.binomial_test: Summary method for binomial test results

Description

Creates a summary object that produces detailed output when printed, including the category table with counts and observed proportions, and the test statistics table with test proportion, p-value, and confidence interval.

Usage

# S3 method for binomial_test
summary(object, categories = TRUE, results = TRUE, digits = 3, ...)

Value

A summary.binomial_test object.

Arguments

object

A binomial_test result object.

categories

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

results

Logical. Show test statistics table? (Default: TRUE)

digits

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

...

Additional arguments (not used).

See Also

binomial_test for the main analysis function.

Examples

Run this code
result <- binomial_test(survey_data, gender, p = 0.50)
summary(result)
summary(result, categories = FALSE)

Run the code above in your browser using DataLab