package randomizeBE [🇷 for BE/BA]
Hii Helmut,
This helped me a lot....
but i have few more confusions in it, when we generate the randomization schedule in SAS using PROC PLAN Procedure, we generally take for example if subjects are 12, blocks will be 6 and if we generate the randomization we get the results as follows
Code:
when using BEAR Package in R we getting the following output
Comparison: when we run in SAS, within the block same sequence is not repeating, but when we run in R, we are getting the sequence repeated within the blocks. even though we are getting the P-value of 1.000 in R
but is it fine to get that.
Thanks in advance
Edit: Tabulators changed to spaces and BBcoded; see also this post #6. [Helmut]
This helped me a lot....
but i have few more confusions in it, when we generate the randomization schedule in SAS using PROC PLAN Procedure, we generally take for example if subjects are 12, blocks will be 6 and if we generate the randomization we get the results as follows
Code:
proc plan ;
factors blocks=6 random sequence=2 random/ noprint;
output out=first sequence nvals= (1 2) random;
quit;
run;
Output:
blocks sequence
4 1
4 2
5 2
5 1
6 2
6 1
1 1
1 2
2 2
2 1
3 2
3 1
when using BEAR Package in R we getting the following output
subject seqno sequence
1 2 TR
2 2 TR
3 1 RT
4 2 TR
5 1 RT
6 1 RT
7 2 TR
8 1 RT
9 1 RT
10 1 RT
11 2 TR
12 2 TR
Comparison: when we run in SAS, within the block same sequence is not repeating, but when we run in R, we are getting the sequence repeated within the blocks. even though we are getting the P-value of 1.000 in R
but is it fine to get that.
Thanks in advance
Edit: Tabulators changed to spaces and BBcoded; see also this post #6. [Helmut]
Complete thread:
- Randomization Schedule in R sury 2019-08-23 13:39 [🇷 for BE/BA]
- package randomizeBE Helmut 2019-08-24 16:31
- package randomizeBEsury 2019-08-26 09:34
- package randomizeBE Helmut 2019-08-26 10:35
- package randomizeBE sury 2019-08-26 11:54
- (Pseudo-) random numbers, algos, seeds Helmut 2019-08-26 12:28
- how about randomly selected block sizes? yjlee168 2019-08-28 07:25
- how about randomly selected block sizes? ElMaestro 2019-08-28 09:26
- package randomizeBE sury 2019-08-26 11:54
- package randomizeBE Helmut 2019-08-26 10:35
- package randomizeBEsury 2019-08-26 09:34
- package randomizeBE Helmut 2019-08-24 16:31