From: Nick Bond (Nick.Bond@sci.monash.edu.au)
Date: Wed 16 Jan 2002 - 14:08:56 EST
Message-id: <3C44E0B8.296F7CC@sci.monash.edu.au>
Hello R-help Readers
I'm currently in the process of trying to write a permutation test
procedure for looking at differences between groups with a multivariate
data set (something equivalent to ANOSIM - analaysis of similarities for
those familiar with this test). As with other permutation tests, for
cases where there are large numbers of possible permutations, randomly
sampling from these is appropriate, and can be done simply using
sample(vector_x) to create each random permutation.
However, where sample sizes are small, it is more appropriate (I think)
to exhaustively calculate all possible permutations. This is equivalent
to determining all possible ways of assigning n samples to each of k
groups = (kn)!/[(n!)^k*k!]. As a relative beginner at programming, I
suspect that writing the code to determine (and list) these permutations
is far beyond me. I am wondering, therefore, whether anyone out there
has done somehting similar, or knows of any suitable routine to
calculate these permutations that they would be willing to share with
me.
Thanks in advance.
Nick
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Dr Nick Bond
Department of Biological Sciences
Monash University (Clayton Campus)
Victoria, Australia, 3800
Ph: +61 3 9905 5606 Fax: +61 3 9905 5613
Email: Nick.Bond@sci.monash.edu.au
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
This archive was generated by hypermail 2.1.3 : Thu 17 Jan 2002 - 11:10:11 EST