Dancing with the dice [Regulatives / Guidelines]
Hi Mon Captain, dear Helmut,
Not really. It rolls the 'binary dice' 24 times again and again until the vector of +1's and -1's has the same number of both entries (is 'balanced').
Thus while being programmed along an "incredibly elegant way of achieving a lot with minimum coding" not so very effective concerning computational time if one considers what is intended (have seen more than 20 loop passes in a short experimentation).
❝ ❝ while (sum(x) != 0) x <- sign(rnorm(size))
❝
❝ ... It completely permutes equal numbers of TR and RT (or -1's and 1's).
Not really. It rolls the 'binary dice' 24 times again and again until the vector of +1's and -1's has the same number of both entries (is 'balanced').
Thus while being programmed along an "incredibly elegant way of achieving a lot with minimum coding" not so very effective concerning computational time if one considers what is intended (have seen more than 20 loop passes in a short experimentation).
—
Regards,
Detlew
Regards,
Detlew
Complete thread:
- USFDA requirement for randomization Ravi 2012-06-15 13:39 [Regulatives / Guidelines]
- randomization: validation Helmut 2012-06-15 17:39
- randomization: runs test? validation? d_labes 2012-06-16 13:10
- randomization: runs test? validation? Helmut 2012-06-16 14:00
- probability nearly zero? d_labes 2012-06-16 16:11
- probability nearly zero! Helmut 2012-06-16 17:08
- R-package randomizeBE d_labes 2012-07-06 09:54
- R-package randomizeBE Helmut 2012-07-06 12:51
- R-package randomizeBE d_labes 2012-07-06 09:54
- probability nearly zero! Helmut 2012-06-16 17:08
- probability nearly zero? d_labes 2012-06-16 16:11
- randomization: runs test? validation? Helmut 2012-06-16 14:00
- randomization: validation ElMaestro 2012-06-16 13:31
- randomization: runs test Helmut 2012-06-16 14:42
- randomization: runs test ElMaestro 2012-06-16 14:48
- randomization: runs test Helmut 2012-06-16 15:10
- very cool coding style ElMaestro 2012-06-16 19:12
- Better a good steal than a bad reinvention Helmut 2012-06-17 13:22
- Better a good steal than a bad reinvention ElMaestro 2012-06-17 19:58
- Dancing with the diced_labes 2012-06-18 15:38
- Silly's randomization 2x2 xover d_labes 2012-06-18 16:30
- Silly's randomization 2x2 xover Helmut 2012-06-18 17:14
- Clumsy code Helmut 2012-06-18 17:42
- Clumsy code ElMaestro 2012-06-18 18:01
- Speed kills Helmut 2012-06-18 18:56
- Speed kills jag009 2012-09-17 21:46
- Speed kills Helmut 2012-06-18 18:56
- Clumsy code ElMaestro 2012-06-18 18:01
- Silly's randomization 2x2 xover d_labes 2012-06-18 16:30
- Better a good steal than a bad reinvention Helmut 2012-06-17 13:22
- randomization: runs test ElMaestro 2012-06-16 14:48
- randomization: runs test Helmut 2012-06-16 14:42
- randomization: runs test? validation? d_labes 2012-06-16 13:10
- randomization: validation Helmut 2012-06-15 17:39