powered by
statistical test which returns a extensible tibble
stat_test( df, y, x, .by = NULL, trans = "identity", paired = FALSE, paired_by = NULL, alternative = "two.sided", exclude_func = NULL, method = "wilcoxon", ns_symbol = "NS", digits = 2 )
test result tibble
tibble
value
sample test group
super-group
scale transformation
paired samples or not
a column for pair
one of "two.sided" (default), "greater" or "less"
a function has two arguments and return bool value, used if paired=TRUE and will keep the comparation pairs which return TRUE by this function.
test method, 'wilcoxon' as default, one of t|wilcoxon
t|wilcoxon
symbol of nonsignificant, 'NS' as default
significant figure digits of p value If the data pair of a single test returns TRUE, then exclude this pair
stat_test(mini_diamond, y = price, x = cut, .by = clarity)
Run the code above in your browser using DataLab