Skip to content
Prev 179591 / 398503 Next

error using lapply with oneway_test (coin package)

yes, that would be the fix:

R> lapply(y, function(var) oneway_test(var ~ group,
           data = data.frame(var = var, group = group)))
$V1

 	Asymptotic 2-Sample Permutation Test

data:  var by group (1, 2)
Z = -1.2054, p-value = 0.2280
alternative hypothesis: true mu is not equal to 0


$V2

 	Asymptotic 2-Sample Permutation Test

data:  var by group (1, 2)
Z = 0.5672, p-value = 0.5706
alternative hypothesis: true mu is not equal to 0

Thanks, Duncan.

Torsten