At a closer look I realized that this method is good for Shapiro-Wilk test,
not for Two-samples Wilcoxon test.
Can somebody to sugest a solution? I want to compare town with country.
2010/5/25 Iurie Malai
>
> I use two similar scripts to put calculated values (many thanks for Phil
> Spector) of
Iurie -
The help file for both functions has a "Values" section
that describes in detail exactly what the function returns.
In both cases, you'll see there is a component named
"statistic", which is what you want.
- Phil Spector
Hi,
I use two similar scripts to put p-values of shapiro.test and, respectively,
of wilcox.test in a table:
a)
d <- data.frame(dataset$GroupFactor, dataset[2:11])
# p-values for the shapiro test (by levels of GroupFactor)
with(d, aggregate(d[,-1], list(d[,1]), FUN = function(x)
shapiro.test(x)$p.
3 matches
Mail list logo