From: elodie on 19 Feb 2010 16:42 Hi everyone, I have been trying to generate a randomization schedule for permuted- block randomization schedule and am having no luck with PROC PLAN. I did it manually before, but was hoping for simplification. I am looking to assign 60 patients in a randomized trial to two treatments (1 and 2). The plan calls for permuted-block randomization with 6 patients per block. A condition is imposed where the two treatments are balanced within three disease stage groups as well as overall. It is the first time I use proc plan, and my syntax is pretty useless at this point. I would appreciate it if someone could give me some help. proc plan seed=32807; factors block=10 ordered cancerstage=3 ; treatments treatment=3 random;*/ run; quit; Thanks a lot in advance.
From: data _null_; on 19 Feb 2010 17:22 On Feb 19, 3:42 pm, elodie <elodie.gill...(a)gmail.com> wrote: > Hi everyone, > > I have been trying to generate a randomization schedule for permuted- > block randomization schedule and am having no luck with PROC PLAN. I > did it manually before, but was hoping for simplification. > > I am looking to assign 60 patients in a randomized trial to two > treatments (1 and 2). The plan calls for permuted-block randomization > with 6 patients per block. > > A condition is imposed where the two treatments are balanced within > three disease stage groups as well as overall. > > It is the first time I use proc plan, and my syntax is pretty useless > at this point. I would appreciate it if someone could give me some > help. > > proc plan seed=32807; > factors block=10 ordered cancerstage=3 ; > treatments treatment=3 random;*/ > run; > quit; > > Thanks a lot in advance. If I understand correctly this is RCB with 2 treatments. Three plots(subjects) per trt per block, for 6 plots per block. If so I believe this PROC PLAN will suffice. proc plan seed=32807; factors block=10 ordered treatment=6 i=1; treatments subjid=1 of 60 perm; output out=plan(drop=i) treatment cvals=('A' 'A' 'A' 'B' 'B' 'B'); run; quit; proc print; by block; id block; run;
From: a on 20 Feb 2010 08:58 On Feb 19, 4:22 pm, "data _null_;" <datan...(a)gmail.com> wrote: > On Feb 19, 3:42 pm, elodie <elodie.gill...(a)gmail.com> wrote: > > > > > > > Hi everyone, > > > I have been trying to generate a randomization schedule for permuted- > > block randomization schedule and am having no luck with PROC PLAN. I > > did it manually before, but was hoping for simplification. > > > I am looking to assign 60 patients in a randomized trial to two > > treatments (1 and 2). The plan calls for permuted-block randomization > > with 6 patients per block. > > > A condition is imposed where the two treatments are balanced within > > three disease stage groups as well as overall. > > > It is the first time I use proc plan, and my syntax is pretty useless > > at this point. I would appreciate it if someone could give me some > > help. > > > proc plan seed=32807; > > factors block=10 ordered cancerstage=3 ; > > treatments treatment=3 random;*/ > > run; > > quit; > > > Thanks a lot in advance. > > If I understand correctly this is RCB with 2 treatments. Three > plots(subjects) per trt per block, for 6 plots per block. > > If so I believe this PROC PLAN will suffice. > > proc plan seed=32807; > factors block=10 ordered treatment=6 i=1; > treatments subjid=1 of 60 perm; > output out=plan(drop=i) treatment cvals=('A' 'A' 'A' 'B' 'B' 'B'); > run; > quit; > proc print; > by block; > id block; > run;- Hide quoted text - > > - Show quoted text - The statements can be simplified such that the TREATMENTS statement is not needed. proc plan seed=32807; factors block=10 ordered treatment=6 subjid=1 of 60 perm; output out=plan treatment cvals=('A' 'A' 'A' 'B' 'B' 'B'); run; quit; proc print; by block; id block; run;
|
Pages: 1 Prev: Proc report line statement - Print footnotes on page 1 Next: select first obs for string |