Learn R Programming

mariposa (version 0.7.3)

print.binomial_test: Print binomial test results (compact)

Description

Compact print method for objects of class "binomial_test". Shows a one-line summary per variable with the observed vs. test proportion, p-value, and sample size.

For the full detailed output (category table, test statistics with confidence interval), use summary().

Usage

# S3 method for binomial_test
print(x, digits = 3, ...)

Value

Invisibly returns the input object x.

Arguments

x

A binomial_test object

digits

Number of decimal places to display (default: 3)

...

Additional arguments (not used)

Examples

Run this code
result <- binomial_test(survey_data, gender, p = 0.50)
result              # compact one-line overview
summary(result)     # full detailed output

Run the code above in your browser using DataLab