Questions tagged [pairwise.wilcox.test]

72 questions
0
votes
1 answer

Output in the desired format from the test.wilcoxon function

My data.frame: data <-structure(list(col1 = c(125L, 654L, 896L, 154L, 865L, 148L), col2 = c(489L, 657L, 198L, 269L, 789L, 456L), col3 = c(741L, 852L, 963L, 987L, 951L, 632L), col4 = c(124L, 785L, 874L, 965L, 563L, 145L), col5 =…
GOGA GOGA
  • 407
  • 2
  • 7
0
votes
0 answers

Is there a function to carry out unpaired Wilcoxon test for two samples in a dataframe in r?

I am trying to do an unpaired wilcoxon (Mann Whitney test) with a df containing gene expression values for two samples SampleA SampleA SampleA SampleB SampleB gene1 gene2 gene3 .. ..' I have grouped the two sample types into SampleA and SampleB…
0
votes
1 answer

wilcox test and fisher test to different types of columns

I have a list of columns whose number belongs to each category list.group <-list(list(id = 2, type = "num"), list(id = 3, type = "num"), list(id = 4, type = "cat"), list(id = 5, type = "cat")) I have a function in which there are 2…
GOGA GOGA
  • 407
  • 2
  • 7
0
votes
1 answer

wilcox test inside rows

I have a data frame: structure(list(groups = c("A", "A", "A", "A", "B", "B", "B", "B", "C", "C", "C", "C", "D", "D", "D", "D"), weight = c(50.34869444, 49.20443342, 50.62727386, 50.12316397, 49.84571613, 50.88337532, 48.23188285, 51.13725686,…
GOGA GOGA
  • 407
  • 2
  • 7
0
votes
0 answers

Should I use Friedman test or Mixed Model for my data in R? Nested or not?

I have my Response variable which is Proportion of Range Exposed to extreme events for terrestrial mammal species in the future. More clearly, it is the Difference of Proportion of Range Exposed (DPRE) from historical period to future green gases…
matteo s.
  • 1
  • 1
  • 1
0
votes
0 answers

How could I repeat a random sample, and Mann-Whitney U test on that sample, many times in R?

I have found a way to do the procedure I want to do, but I'm stuck on how to repeat that 100 or 1000 times. Basically, I want to sample a random observation (indvd_ID) from each group (group_ID) in the dataset (flowers). Then I want to test whether…
Mairi
  • 35
  • 7
0
votes
1 answer

wilcoxonPairedR error - Testing works for one dataset but not for the other

I just wasted a whole day searching for a solution for my problem. So briefly, I have 2 datasets with 2 samples each from a wilcox_test. Now, I wanted to test for effect size. For the first dataset I receive an effect size "r", for the other I…
0
votes
1 answer

Apply wilcox.test to all paired columns in a dataframe

For my M.Sc. project I try to order all columns of a (by the user) given dataframe by their median, apply the wilcox.test on the columns by a specific schema (mentioned later) and then plot each column's values in a box-whisker-plot. The ordering…
nostripe
  • 31
  • 3
0
votes
0 answers

Performing Mann-Whitney (Wilcox) Test on Grouped Data in R Studio?

I have a dataset that measures the abundance of macroinvertebrates from multiple sample sites. I wish to compare results from the most recent years of sampling with results from all previous years of sampling at the same sites. My data looks like…
nracine
  • 1
  • 1
0
votes
1 answer

How to write a loop to run a Mann whitney U test of a data frame?

I am trying to make some analysis in R. I need to perform a non-paired Wilcox test of my dataframe. Fist of all I made a script for the analysis: wilcox.test(df$Obs1[df$Var1 == "1" & df$Var2 == "1"], df$Obs1[df$Var1 == "1" & df$Var2 ==…
0
votes
2 answers

How to melt pairwise.wilcox.test output using dplyr?

I want to apply pairwise.wilcox.test for multiple independent variables at a time and then want to have the output in long format. For a particular Wavelength, I could do it using the following code try <- pairwise.wilcox.test(df$WV_350,…
UseR10085
  • 7,120
  • 3
  • 24
  • 54
-1
votes
2 answers

How to perform column-wise wilcox.test on groups in R

I have data.frame df1: set.seed(12345) df1 <- data.frame(group=c(rep("apple", 4), rep("pear",6)), a=rnorm(10,0,0.4), b=rnorm(10,0,0.2), c=rnorm(10,0,0.7), d=rnorm(10,0,0.9), e=rnorm(10,0,0.5)) How can I get the column-wise…
Sylvia Rodriguez
  • 1,203
  • 2
  • 11
  • 30
1 2 3 4
5