Learn R Programming

mariposa (version 0.7.3)

summary.chisq_gof: Summary method for chi-square goodness-of-fit test results

Description

Creates a summary object that produces detailed output when printed, including the frequency table with observed, expected, and residual counts, and the test statistics table.

Usage

# S3 method for chisq_gof
summary(object, frequency_table = TRUE, results = TRUE, digits = 3, ...)

Value

A summary.chisq_gof object.

Arguments

object

A chisq_gof result object.

frequency_table

Logical. Show the frequency table with observed, expected, and residual counts? (Default: TRUE)

results

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

digits

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

...

Additional arguments (not used).

See Also

chisq_gof for the main analysis function.

Examples

Run this code
result <- chisq_gof(survey_data, gender)
summary(result)
summary(result, frequency_table = FALSE)

Run the code above in your browser using DataLab