Learn R Programming

mariposa (version 0.7.3)

print.summary.chi_square: Print summary of chi-squared test results (detailed output)

Description

Displays the detailed SPSS-style output for a chi-squared test, with sections controlled by the boolean parameters passed to summary.chi_square. Sections include cross-tabulation, test results, and effect sizes (Cramer's V, Phi).

Usage

# S3 method for summary.chi_square
print(x, ...)

Value

Invisibly returns the input object x.

Arguments

x

A summary.chi_square object created by summary.chi_square.

...

Additional arguments (not used).

See Also

chi_square for the main analysis, summary.chi_square for summary options.

Examples

Run this code
result <- chi_square(survey_data, gender, education)
summary(result)                          # all sections
summary(result, cross_tabulation = FALSE) # hide crosstab

Run the code above in your browser using DataLab