Skip to content
Prev 310804 / 398506 Next

indexing for Wilcoxon test (take 2)

Hello,

Thanks for the data example.
Try the following.

sp <- split(dat, dat$trial)
control <- sp[[1]]
lapply(sp[-1], function(x) wilcox.test(control[["removed"]], 
x[["removed"]]))

Hope this helps,

Rui Barradas

Em 14-11-2012 18:01, Jeffrey Stratford escreveu: