Nothing
test_that("Mann–Whitney U test via rstatix returns numeric p-value", {
df <- get_sample_df()
# ensure exactly two groups for a valid Mann–Whitney test; if more, keep first two
if (nlevels(df$group) > 2) {
df <- droplevels(df[df$group %in% levels(df$group)[1:2], ])
}
res <- rstatix::wilcox_test(df, value ~ group, paired = FALSE, detailed = TRUE)
expect_true(is.data.frame(res))
expect_true("p" %in% names(res))
expect_true(all(res$p >= 0 & res$p <= 1))
})
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.