different p value from Wilcoxan and ANOVA

  Kiến thức lập trình

I got the different p-value from wilcoxan and anova

When I use the Wilcoxan test, the p-value is less than 0.05.
treatment A <- drug$weight[treatment == "A"] treatment B <- drug$weight[treatment == "B"] wilcox.test(treatmentA, treatment B, paired = F)

If run ANOVA, p-value is more than 0.05
aov(weight~treatment, data = drug)

There are 2 independent sample test (compare weight from treatment A and B)), more than 100 sample, with missing data.
What sould I use? Is it about missing value?

New contributor

bibi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

LEAVE A COMMENT