Learn R Programming

mariposa (version 0.7.3)

print.friedman_test: Print Friedman test results (compact)

Description

Compact print method for objects of class "friedman_test". Shows a one-line summary with the chi-square statistic, p-value, Kendall's W, and sample size.

For the full detailed output (rank tables, test statistics), use summary().

Usage

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

Value

Invisibly returns the input object x.

Arguments

x

A friedman_test object

digits

Number of decimal places to display (default: 3)

...

Additional arguments (not used)

Examples

Run this code
result <- friedman_test(survey_data, trust_government, trust_media,
                        trust_science)
result              # compact one-line overview
summary(result)     # full detailed output

Run the code above in your browser using DataLab