Learn R Programming

mariposa (version 0.7.3)

print.chi_square: Print chi-squared test results (compact)

Description

Compact print method for objects of class "chi_square". Shows a one-line summary per test with test statistic, p-value, effect size, and sample size.

For the full detailed output, use summary().

Usage

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

Value

Invisibly returns the input object x.

Arguments

x

An object of class "chi_square" returned by chi_square.

digits

Number of decimal places to display. Default is 3.

...

Additional arguments (not used).

Examples

Run this code
result <- chi_square(survey_data, gender, education)
result              # compact one-line overview
summary(result)     # full detailed output

Run the code above in your browser using DataLab