Questions tagged [pairwise.wilcox.test]

72 questions
1
vote
0 answers

ggstatplot: Pairwise comparison - how to display boxplot only, without violin plot?

I created a plot of pairwise comparisons using ggwithinstats. This plot contains a box and violin plot. I want the plot type to be only "box" but I cannot find this option. What can be done? Thanks!
LenaLapi
  • 11
  • 1
1
vote
1 answer

Cannot compute exact p-value with ties while using boxplots

I have multiple cancer datasets, with genes as rows and samples as columns. Each data set has samples that responded to the therapy, labeled Response, and samples that did not respond, labeled NoResponse. I'm trying to assess the difference between…
1
vote
1 answer

How does wilcox.test() handle ties?

I run the pairwise.wilcox.test() on a data with many ties, I get the following warning: Warning in wilcox.test.default(xi, xj, paired = paired, ...) : cannot compute exact p-value with ties I would like to know how does wilcox.test() handle the…
SteveMcManaman
  • 391
  • 1
  • 17
1
vote
0 answers

Wilcoxon tests as linear models in R

I found some suggestions throughout the web that suggest that most common statistical tests can be performed using general(ized) linear models (cf. here). The author suggests to first transform the data into signed ranks (as the wilcoxon test does)…
Anti
  • 365
  • 1
  • 14
1
vote
1 answer

How to do Wilcox test function when reading data from dataframe, in R?

I'm trying to make this function work, but am failing. What I need is a function that reads the names from a dataframe columns and uses them to perform a Wilcoxon test on each of those columns. "result" would be the main final product, a table with…
camcecc10
  • 47
  • 6
1
vote
1 answer

Vectorised wilcox.test function dplyr

I have tried to create a vectorised version of the wilcox.test function in R. It doesn't return the same p values as the original wilcox.test function. Does anyone understand why ? library(tidyverse) vect_wilcox <- function(df, grouping_variable,…
T. Walter
  • 81
  • 1
  • 6
1
vote
3 answers

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

I have data.frame df1: df1 <- data.frame( En_ID = c("KNT00000000003", "KNT00000000005", "KNT00000000419", "KNT00000000457", "KNT00000000460", "KNT00000000938", "KNT00000000971", "KNT00000001036",…
SUMIT
  • 563
  • 4
  • 12
1
vote
1 answer

comparison of sample groups for wilcox test

I have a function that compares the columns in each group using the wilcoxon test. Function: group.leb=c(1,2) z <- c(2,3,4) v <- 2 s <- sapply(z,'+',v) combination <- mapply(c,z,s,SIMPLIFY = F) wilcox.fun <- function(dat) { do.call(rbind,…
GOGA GOGA
  • 407
  • 2
  • 7
1
vote
1 answer

How do I figure out which median is larger using wilcoxon rank sum test?

I am really new and the TA's asked me to come here for any help for RStudio. This week we're learning about the Wilcoxon rank sum exact test. I understand (I think) that the P value the test returns is that if P < 0.05 then, the data comes from…
Laith Ali
  • 11
  • 1
1
vote
0 answers

Multiple boxplots showing multiple pairwise comparisons

I would like to display the results of non-parametric pairwise comparisons using base R boxplots. I have multiple groups (species) and multiple variables (rates). I will provide some dummy data as my data set is quite large: set.seed(123) data <-…
Rnewbie
  • 25
  • 3
1
vote
1 answer

How to find meaningful boundaries between two continuous variables in R

To find the relationship between two columns of the iris dataset, I am performing kruskal.test and p.value shows a meaningful relationship between these two columns. data(iris) kruskal.test(iris$Petal.Length, iris$Sepal.Width) Here are the…
Saurabh
  • 1,566
  • 10
  • 23
1
vote
1 answer

t.test across a dataframe based on two different group of factors in R

i have a dataframe of variables for 11 species of plants recorded in 2 locations. for each specie, I am attempting to compare the mean of variables between two different locations using a t.test(or wilcoxon test). Here is the first few rows of my…
0
votes
1 answer

Problem with argument lengths while using multcompLetters2

I'm trying to obtain the compact letters associated with the p values I generated with the function pairwise.wilcox.test(). I used the function multcompLetters() which works well, but I want the letters to be ordered so that the highest mean gets…
0
votes
0 answers

How do I run every possible pairwise comparison using the Wilcoxon Sign-Rank Test when there are more than two levels of a grouping variable?

I have a within-subjects dataset for which I am running pairwise comparisons on a dependent variable that is be separated into four groups. I have the data organized long-ways and wide-ways: Example…
0
votes
1 answer

Paired samples wilcoxon test over each column

i would like to perform in R a pairwise sample wilcoxon test (by variable "Time") over each column of a dataframe splitted by "Group" (i.e. Group1 and Group2). structure(list(ID = c(1L, 2L, 3L, 4L, 5L, 10L, 11L, 12L, 13L, 14L, 1L, 2L, 3L, 4L, 5L,…
user14845003
  • 101
  • 10