Displaying 1 result from an estimated 1 matches for "tttp".
Did you mean:
http
2012 Oct 31
3
expand.grip for permutations
if i were to have a block size of 4 people and i want to assign a treatment
combination to the entire block, there would be 16 different treatment
combinations (TTTT, TTTP, TTPP, PTTP, etc.)
i am trying to get all 16 permutations and i am able to use this code below.
drugs=c('P','T');
comb=expand.grid(drugs,drugs,drugs,drugs)
for a block size of 3 the code would be comb=expand.grid(drugs,drugs,drugs)
and for a block size of 2 it would be comb=expan...