dunn.test is a R package implementing Dunn's test of multiple comparisons using rank sums.
Questions tagged [dunn.test]
37 questions
6
votes
2 answers
how to create a table as dunn.test output (R)?
I'm working with bacteria pyrosequencing data and I'm doing the statistical analysis with R. I have 21 samples and 7 different treatments. I loaded my data into R phyloseq obtaining:
> psR
phyloseq-class experiment-level object
otu_table() OTU…

Lidia_N
- 73
- 1
- 6
3
votes
0 answers
dunn's test plot - which package?
I came across a Dunn's test plot :
Is there a package that can make these plots? I have run Dunn's test and want to present my data graphically.

user1607
- 531
- 7
- 28
2
votes
3 answers
How to automate dunn_test and ggboxplot?
I'm working on a dataframe (called df) looking something like this (shortened here for practical…

sophiethomas
- 63
- 6
2
votes
0 answers
is there a way to place significance results in my ggplot?
I'm looking for a way to place my dunn's test results on my ggplot:
either directly by somehow implementing the necessary code lines on the plot regarding the results of the dunn test
or indirectly by placing just the letters regarding…

Roma JC
- 57
- 5
2
votes
1 answer
Looping Dunn's test with purr package
I would like to run a Dunn test with the purrr package. However, the tidy function to extract the parameter/results seemed to do not work with this test. Any one has sugesstion for me?
My example.
df <- data.frame(Type = c("n1", "n1", "n2", "n2",…

Anh
- 735
- 2
- 11
2
votes
2 answers
dunn's test to loop over columns of a data-frame
I am trying to perform Dunn's test for Iris data. I want to loop over 4 columns and perform Dunn's test for each column on different species.
However, when I try to get the column name it does not work. Can anybody tell me…

krishthw
- 125
- 8
2
votes
2 answers
Writing a function to summarize the results of dunn.test::dunn.test
In R, I perform dunn's test. The function I use has no option to group the input variables by their statistical significant differences. However, this is what I am genuinely interested in, so I tried to write my own function. Unfortunately, I am not…

yenats
- 531
- 1
- 3
- 16
2
votes
2 answers
control the output of dunn test
I'm using dunn.test() from the package dunn.test, and I don't want it to print anything to the std output (console) because I'm doing it many times, and I want to see if I have any warnings before that.
So I canceled the printing of kruskal wallis…

T.G.
- 743
- 3
- 6
- 27
2
votes
2 answers
Write a data frame to a .xls file with a title
I adapted a script to run the multiple (post-hoc) comparisons dunn.test function from the dunn.test package, on multiple variables, which generates multiple data frames, saved with the bellow (simplified) code in an .xls file as separate tables.…

Yurié
- 2,148
- 3
- 23
- 40
1
vote
1 answer
Obtaining Significance letters (multcompView) while performing Dunn's Test
I am trying to obtain the significance letters with the function multcompLetters2( ) after performing a Pairwise Dunn Rank Sum Test with function dunnTest( ).
However, after assigning the output of the test to an object (dunn.iris), I am unable to…

chiliconcarno
- 15
- 6
1
vote
0 answers
how can I change the header name in post hoc test result table?
I want to clarify the name of each row and column with specific name. however, it's shown only with the number (1,2,3,4,5...).
I performed post hoc test named as dunn's test, after kruskal wallis test for non-parametric graph.
sp.posthoc_dunn(data,…

jay
- 99
- 6
1
vote
1 answer
get significantly different groups from dunn test in R
In R, I compare groups with the dunn.test. Here is some example data, where "type" is the grouping variable:
my_table <- data.frame ("type" = c (rep ("low", 5), rep ("mid", 5), rep ("high", 5)),
"var_A" = rnorm (15),
…

yenats
- 531
- 1
- 3
- 16
1
vote
0 answers
Does Dunn's test (particularly the Z-statistic) say anything about direction?
I have conducted a Dunn's test to compare the distribution of factor scores across three nominal variables. How do I interpret the signs of the Z-statistic? Do Z-statistics say anything about direction?

Jo3
- 11
- 1
1
vote
0 answers
What is the best way to manage/store result from either posthoc.krukal.dunn.test() or dunn.test() - where my input data is in dataframe format?
I am a newbie in R programming and seek help in analyzing the Metabolomics data - 118 metabolites with 4 conditions (3 replicates per condition). I would like to know, for each metabolite, which condition(s) is significantly different from which.…

Pearl_Lo
- 11
- 3
1
vote
1 answer
Tidyverse solution to grouping, and looping through dataframe to perform dunn.test
I have an example dataframe below.
example.df <- data.frame(
species = sample(c("primate", "non-primate"), 50, replace = TRUE),
treated = sample(c("Yes", "No"), 50, replace = TRUE),
gender = sample(c("male", "female"), 50, replace = TRUE),
var1…

jaydoc
- 79
- 1
- 7