Questions tagged [pairwise.wilcox.test]

72 questions
3
votes
1 answer

Wilcox.test error when running multiple times due to NAs (using dplyr in R)

I am using this example data.frame and code. I would like to do multiple tests between two group, but when there are no data in one group, it is causing an error. How can I skip the comparisons without two groups and still run the code on the other…
Sylvia Rodriguez
  • 1,203
  • 2
  • 11
  • 30
3
votes
2 answers

Statistical test with test-data

If I am using two method (NN and KNN) with caret and then I want to provide significance test, how can I do wilcoxon test. I provided sample of my data as follows structure(list(Input = c(25, 193, 70, 40), Output = c(150, 98, 27, 60),…
2
votes
2 answers

Using Mann Whitney to create list of pvalues

I am looking to find a way to write a for loop using a Mann Whitney Wilcox test in R. The command I have seen online is wilcox.test(). But I am trying to do so for large data sets that have thousands of columns. I have not found any luck online for…
dkcongo
  • 227
  • 1
  • 9
2
votes
0 answers

pwilcox takes long time when sample size is large in r

I have very large sample sizes. For example, pwilcox(6000, 36, 17000). The problem is that, it takes a lot of time on r to return the p-value. How can I make it fast?
Nmgh
  • 113
  • 7
2
votes
1 answer

R wilcoxon test on groups

I would like to perform a wilcoxon test on a paired sample and I am wondering, if my code is correct for what I would like to test. I want to know if there is a significant difference between my dependent variable mean moisture (=Feuchte) and my…
Effigy
  • 145
  • 7
2
votes
1 answer

R ggplot2: add kruskal Wallis and pairwise Wilcoxon test to boxplots with multiple groups/subgroups within each group and facet

I am trying to add kruskal Wallis and pairwise Wilcoxon test to the figure to show which groups are significant different, but I have multiple groups/subgroups within each group and facet which makes it complicated. Here is the R code by using iris…
dolphin
  • 21
  • 1
  • 3
2
votes
1 answer

Paired Wilcoxon test with covariates in r

Is it possible to include covariates in paired wilcoxon tests? (E.g., data from multiple test points (1 group), needing to account for 1 variable).
2
votes
3 answers

Significant differences between multiple variables in R

I have a dataset of particle concentrations recorded at 5 different height. I want to find out whether the differences are significant. For each height, N=15. What test would be appropriate to use? I used pairwise.t.test, but am not sure if this is…
Johanna
  • 125
  • 5
2
votes
2 answers

How to return an "NA" when wilcox.test p value cannot be determined (R)

In R, I am trying to create a vector with various p values, as in code below, but one of the four wilcox.test p values cannot be determined, because there is only one category. How can I make the code work so that it produces the vector with an NA…
Sylvia Rodriguez
  • 1,203
  • 2
  • 11
  • 30
2
votes
1 answer

Is there a way to apply wilcoxon test grouped by site?

I want to use Wilcoxon 2-sided test for two treatments across multiple groups, i.e. there is a before and after treatment (Conc) for each of several sample sites. I want to split the dataset into a list by Site then apply the test so i can have an…
CatN
  • 71
  • 7
1
vote
1 answer

Is there any way to set significant level based on 'p.adj' instead of 'p.format' when using compare_means function in R

required package : install.packages("ggpubr") library(ggpubr) data("ToothGrowth") df_compare <- compare_means(len~supp, data=ToothGrowth, method = "wilcox.test", paired = TRUE, group.by = "dose") My question is how…
Balina
  • 81
  • 5
1
vote
1 answer

R - Wilcoxon signed-rank test

I reviewed Wilcoxon signed-ranks test with R vs by hand,Multiple Wilcoxon Signed Rank test in R, and Wilcoxon signed rank test for heavily tied data. I have two datasets that I is creating pairwise associations between species based on a specific…
1
vote
1 answer

non-parametric manova in R

I created a small example data set: value <- rnorm(100, mean = 100, sd = 36) group <- c(rep(c("A", "B", "C"), 33), "C") gender <- c(rep(c("M", "F"), 50)) test <- cbind(value, group, gender) test <- as.data.table(test) I want to see if the mean…
Nneka
  • 1,764
  • 2
  • 15
  • 39
1
vote
1 answer

How do I carry out wilcox.test considering every 4 rows in R?

I have a very large data frame consisting of two variables (here A and B) and 134,000 observations (134000/4 = 33500 groups). I'm a bit uncertain as to how to get my code to run a paired wilcox.test, but when applied to every four rows. As example…
1
vote
0 answers

Wilcox.test confidence intervals by group (to plot in ggplot)

Is there way to carry out a wilcoxon.test by group, with calculate confidence intervals, and then plot these results in ggplot? My "data": zero <- sample(0:0, 50, replace = TRUE) small <- sample(1:5, 20, replace = TRUE) medium <- sample(5:25, 15,…
Nate
  • 411
  • 2
  • 10
1
2 3 4 5