median_test | R Documentation |
Mood's median test for comparison of group medians
median_test(d, x, g, tol = 1e-06)
d |
a data frame |
x |
unquoted name of quantitative variable |
g |
unquoted name of grouping variable |
tol |
(default 1e-6) any data values closer to overall median than this are discarded |
list of 2 objects: table, counts of values above and below the grand median in each group; value, test statistic, df and P-value
Ken Butler, butler@utsc.utoronto.ca
median_test(datasets::mtcars,mpg,cyl)
d=data.frame(z=1:9,gg=c(1,1,1,1,1,2,2,2,2))
median_test(d,z,gg)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.