RE: Permutation test with small number of possible permutations
From: "Kevin Dykstra" kdykstra@pharsight.com
Subject: RE: [NMusers] Permutation test with small number of possible permutations
Date: Thu, December 2, 2004 9:52 am
Andreas and Mouksassi--There is, in fact, a canned function in SPlus to create all
possible combinations of several vectors. This would be a fairly natural way to do
the exersize you outline. It is expand.grid:
> a = c("A", "B", "C")
> b = c(1, 2)
> expand.grid(a, b)
Var1 Var2
1 A 1
2 B 1
3 C 1
4 A 2
5 B 2
6 C 2
Kind regards,
Kevin Dykstra
Pharsight
_______________________________________________________