Summary method for the compare_means function

# S3 method for compare_means
summary(object, show = FALSE, dec = 3, ...)

Arguments

object

Return value from compare_means

show

Show additional output (i.e., t.value, df, and confidence interval)

dec

Number of decimals to show

...

further arguments passed to or from other methods

Details

See https://radiant-rstats.github.io/docs/basics/compare_means.html for an example in Radiant

See also

compare_means to calculate results

plot.compare_means to plot results

Examples

result <- compare_means(diamonds, "cut", "price") summary(result)
#> Pairwise mean comparisons (t-test) #> Data : diamonds #> Variables : cut, price #> Samples : independent #> Confidence: 0.95 #> Adjustment: None #> #> cut mean n n_missing sd se me #> Fair 4,505.238 101 0 3,749.540 373.093 740.206 #> Good 4,130.433 275 0 3,730.354 224.949 442.848 #> Very Good 3,959.916 677 0 3,895.899 149.732 293.995 #> Premium 4,369.409 771 0 4,236.977 152.591 299.544 #> Ideal 3,470.224 1,176 0 3,827.423 111.610 218.977 #> #> Null hyp. Alt. hyp. diff p.value #> Fair = Good Fair not equal to Good 374.805 0.391 #> Fair = Very Good Fair not equal to Very Good 545.322 0.177 #> Fair = Premium Fair not equal to Premium 135.829 0.737 #> Fair = Ideal Fair not equal to Ideal 1035.014 0.009 ** #> Good = Very Good Good not equal to Very Good 170.517 0.528 #> Good = Premium Good not equal to Premium -238.976 0.38 #> Good = Ideal Good not equal to Ideal 660.209 0.009 ** #> Very Good = Premium Very Good not equal to Premium -409.493 0.056 . #> Very Good = Ideal Very Good not equal to Ideal 489.692 0.009 ** #> Premium = Ideal Premium not equal to Ideal 899.185 < .001 *** #> #> Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1