Learn R Programming

mariposa (version 0.7.3)

print.kruskal_wallis: Print Kruskal-Wallis test results (compact)

Description

Compact print method for objects of class "kruskal_wallis". Shows a one-line summary per variable with the H statistic, p-value, effect size (epsilon-squared), and sample size.

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

Usage

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

Value

Invisibly returns the input object x.

Arguments

x

A kruskal_wallis object

digits

Number of decimal places to display (default: 3)

...

Additional arguments (not used)

Examples

Run this code
result <- kruskal_wallis(survey_data, life_satisfaction, group = education)
result              # compact one-line overview
summary(result)     # full detailed output

Run the code above in your browser using DataLab