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

Denote pairwise significance labeling with letters

I have to label pairwise comparisons on a graph with letters. If the letters are the same, then they are not statistically different, and if they are statistically significant then the letters are different. My data are not normal, I know how to use…
0
votes
1 answer

How to get a correlation coefficient for a comparison between continuous and categorical variable

I have this dataset. I am trying to find the correlation between a continuous variable expr with a categorical variable WHO_Grade: > dput(tmp) structure(list(expr = c(3.72491159808923, 7.8316405937301, 4.1302793124001, 6.81536170645658,…
Komal Rathi
  • 4,164
  • 13
  • 60
  • 98
0
votes
1 answer

How to delist of array from np.split() for function argument

Suppose I have data as in array X = [ x1 x2 ... xn ] when I use np.split(X,n) will separate in to this ARR = [ [arr1] ,[arr2] ,.... [arrn] ] Now I would get those group of array list into function as an input In this case…
0
votes
2 answers

Running multiple Kruskal Wallis test with lapply taking long. Easier solution?

I have a data frame 90 observations and 124306 variables named KWR all numeric data. I want to run a Kruskal Wallis analysis within every column between groups. I added a vector with every different group behind my variables named "Group". To test…
0
votes
1 answer

kruskal wallis test for multiple comparison using python

I am planning on conducting kruskal-wallis test for multiple variables between groups(e.g. disease differences in out1, out2, and out3 in ordinal level) and getting the sorted variables [e.g. out2, out3, out1] based on the decreasing KW test…
zeno Zeng
  • 173
  • 7
0
votes
1 answer

How to lapply() a formula over a dataframe list. or how to perform kruskal.test() over a list of dataframes

So I have this Data and trying to do kruskal.test() over a list containing dataframes df_list <- list( `1.3.A` = tibble::tribble( ~Person, ~Height, ~Weight, "Alex", 175L, 75L, "Gerard", 180L, 85L, …
0
votes
1 answer

How to run the Kruskal-Wallis or Mann-Whitney Test in R?

Can anyone give me a hint on how to run the Kruskal-Wallis Test below? My objective : Is there any significance of the growth (agg_rel_abund) of bacteria between Forest and Urban for each family. The code I have tried in R : kruskal.test(Habitat ~…
Gambit
  • 77
  • 1
  • 11
0
votes
1 answer

Distribution of kruskal wallis under H0

i'm not sure, but i want to check it. Does the distribution of kruskal wallis under H0 is F(k-1,N-k) ? I think that's not true. I think it distrubution with chi square. Can anyone tell me if I'm right?
0
votes
0 answers

Running Kruskal-Wallis/ANOVA over multiple columns

I am trying to do kruskal-wallis in a dataframe. In rows- I have 4 groups of data (4 disease diagnosis), each of the group has 6 patients each In columns- I have around 7000 genes. I am trying to perform kruskal-wallis/ANOVA amoung the 4 groups for…
smad
  • 1
  • 1
0
votes
1 answer

Dunn test in R: error message about something being coerced to a factor

I am trying to conduct a Dunn test in R. This is my code: DTP = dunnTest(P~SoilSeries, data=df3, method="bh") I get this error message: Warning message: SoilSeries was coerced to a factor. I don't know what to do. I turned SoilSeries into a factor…
0
votes
1 answer

eta squared - kruskal wallis in R - different results

Tomczak and Tomczak's (2014) formula to calculate the eta squared for the Kruskal-Wallis H-test using the following code: x <- Data$text H <- unname(kruskal.test(x ~ Data$group)$statistic) n <- sum(table(x, Data$group)) k <-…
CatM
  • 284
  • 2
  • 12
0
votes
1 answer

USING R: Three-way Non-Parametric ANOVA Equivalent? Similar to Kruskal-Wallis But for 3?

I have a data set that needs each factor to be sorted by both Year and Type... so like I can perform Kruskal-Wallis for each factor by Year or by Type. But is there a way for me to evaluate each factor by both? Similar to the ANOVA?
Phiefs3000
  • 17
  • 4
0
votes
1 answer

How to loop Bartlett test and Kruskal tests for multiple columns in a dataframe?

I have the following dataframe I'm calling "test" and I am trying to run a Bartlett's test and a Kruskal-Wallis test for each "metab" vs the "diagnosis" > test Index tube.label age gender diagnosis metab1 metab2 metab3 metab4 metab5 …
vanish007
  • 323
  • 1
  • 10
0
votes
1 answer

Error during applying bartlett test in my function

I am a rookie in R, and just start to write function in R. My purpose is to create a function to improve the process of checking variation and further conduct ANOVA or Kruskal wallis test, also calculated the mean or median of significant…
洪宇亮
  • 1
  • 1
0
votes
0 answers

Question: Kruskal-Wallis test for two groups

I used a clustering tool to partition samples into two groups. Next, I want to see the statistical differences between them in terms of clinical features: Lymph nodes (continuous variables) and tumor stages (categorical variables) Now, I used…
Huy Nguyen
  • 61
  • 5