Learn R Programming

mariposa (version 0.7.3)

print.mann_whitney: Print Mann-Whitney test results (compact)

Description

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

For the full detailed output, use summary().

Usage

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

Value

Invisibly returns the input object x.

Arguments

x

An object of class "mann_whitney" returned by mann_whitney.

digits

Number of decimal places to display. Default is 3.

...

Additional arguments (not used).

Examples

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

Run the code above in your browser using DataLab