Questions tagged [kruskal-wallis]

The Kruskal–Wallis one-way analysis of variance by ranks is a non-parametric method for testing whether samples originate from the same distribution. It is used for comparing more than two samples that are independent, or not related.

102 questions
0
votes
1 answer

Boxplot is broken, only showing one line

so my data centres around different treatments and how they impact the day of germination. image of dodgy boxplot data A while ago whilst making violin plots in R to show the distribution of when germination occurs according to treatment, I…
gibb
  • 3
  • 1
0
votes
1 answer

How to obtain the exact p-value of a Kruskal-Wallis test in R?

How to obtain the exact p-value of a Kruskal-Wallis (e.g. with 3 groups) test in R? Example of data: df <- data.frame( dv = c(0.80, 0.83, 1.89, 1.04, 1.45, 1.38, 1.91, 1.64, 0.73, 1.46, 1.15, 0.88, 0.90, 0.74, 1.21), group =…
Sinval
  • 1,315
  • 1
  • 16
  • 25
0
votes
0 answers

ANOVA on ranks VS kruskal wallis, how different is it

i'm not sure that this is the perfect place for such a question but maybe you can help me. I want to check for differences of a quantitative variable between 3 treatments, i.e perform an ANOVA. Unfortunately the residuals of my model aren't normally…
Skadoosh
  • 1
  • 1
0
votes
1 answer

Kruskal.wallis gives out equal p-values

Friends, I'm having an issue with the Kruskal wallis test in r, testing for stable seasonality with the Kruskal-wallis test. The p-values tested for each variable are coming out the same. Using Kruskal.test(formula, data = mydata) from the…
meester S
  • 25
  • 5
0
votes
1 answer

What went wrong with my Kruskal-Wallis class?

I was trying to build a class that could perform the Kruskal-Wallis test. The class uses the following formula to compute H: However, it yields a different H-value than the kruskal function of scipy. Does anyone know why this is the case? import…
zwithouta
  • 1,319
  • 1
  • 9
  • 22
0
votes
1 answer

How to apply dunn.test for dataframes in R?

I have a CSV file with two columns: group and weight. I'm able to do a Kruskal–Wallis test: kruskal.test(Weight~Group, data=Data.df) I want to calculate pairwise multiple comparisons with the control group (there are different treatments). I have…
Chemist123
  • 3
  • 1
  • 2
0
votes
0 answers

Weighted kruskal wallis

I am working on python on a dataset containing id, id nationality (EU,US,other) , a weight (probability of being of a certain nationality) and id salary. I may have an id repeated twice based on the weight. The aim is to use a Kruskal Wallis test…
LUm-1
  • 41
  • 1
  • 5
0
votes
2 answers

Kruskal-Wallis test on multiple columns at once

This maybe sounds a bit simple, but I cannot get the answer. I have a dataset in R that has 26 samples in rows and many variables (>20) in columns. Some of them are categorical, so what I need to do is to carry out a Kruskal Wallis test for each…
0
votes
1 answer

How to create a faceted boxplot with the significant differences, and 2 measured variables?

I managed to create a faceted boxplot with my 2 quantitative variables; I know how to run a kruskal-wallis followed by a Wilcoxon test and show the significant differences with letters in the boxplot but only in a simple boxplot, with one variable…
CM31
  • 1
  • 1
0
votes
0 answers

Kruskal Wallis calculation

I am having trouble with coding a Kruskal-Wallis test in R. I tried to find how does it work but could not find any answers. I have a dataset with 89 columns and I have to compare each column with a group of others. For example, I have the data of…
0
votes
0 answers

How to resolve variable length differ issue?

I have a dataset that looks like this, I am trying to perform the Kruskal Wallis test on it The r code for it is as follows: my_data <- read.csv('NBvariants_KWtest.csv',header =…
IronMaiden
  • 552
  • 4
  • 20
0
votes
0 answers

Post-hoc test for mixed-effect model with negative binomial function: Parametric or Non-parametric?

I am a newbie here and my question is whether I should use a parametric or non-parametric post-hoc test based on the results from a generalized linear model; and if non-parametric is appropriate, how to conduct it. Because this is about concepts,…
0
votes
0 answers

Why Dunn's Test in Dunn.package and DescTools report diffrent results?

I have notices that dunn.test package and DescTools (p.182) provide the Dunn's Test for e post hoc pairwise multiple comparisons procedure appropriate to follow the rejection of a Kruskal-Wallis test. What are the differences between them? I have…
user1607
  • 531
  • 7
  • 28
0
votes
1 answer

R doesn't recognize factor

I'm going to do a Kruskal-Wallis test in R (testing whether there is a difference between dominance status in fish (five groups, measured from 1-5) and attacks by the fish) but it seems I have som problems with the factor. I import the dataset from…
Anna
  • 21
  • 4
0
votes
1 answer

How can I calculate confidence intervals for epsilon-squared (Effect size for Kruskal-Wallis test) in R?

I'd like to calculate the confidence intervals for the epsilon-squared effect size statistic in R. Here is the code I'm using to calculate the epsilon-squared value: #set up two vectors, a numerical vector and a factor vector (grouping…
clrp
  • 11
  • 1
  • 2