From: Thomas Lumley (tlumley@u.washington.edu)
Date: Thu 17 Jan 2002 - 03:25:06 EST
Message-id: <Pine.A41.4.44.0201160819590.48940-100000@homer26.u.washington.edu>
On Wed, 16 Jan 2002, Nick Bond wrote:
> 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.
The k=2 case is discussed in the first two "Programmers' Niche" columns of
the R Newsletter. This should provide a starting point.
-thomas
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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