BookmarkSubscribeRSS Feed
Bshiver
Calcite | Level 5

Hello,

I'm trying to use PROC PLAN to assist with subject assignment for a study.  Each of 60 subjects will wear 1 of 6 conditions while completing each of 2 tasks.  I want to control for order effects with the tasks.  I would like the first 30 subjects to be balanced across the 6 conditions and task orders (as much as possible) so that I can do an initial look at the data.

 

Is PROC PLAN appropriate, or is there another approach recommended?

 

I have SAS 9.4

 

Thank you in advance for your help.

 

B

1 REPLY 1
PGStats
Opal | Level 21

proc plan might be too complicated (for me!), but what about:

 

data design;
do wear = 1 to 6;
    do taskOrder = "1-2", "2-1";
        do i = 1 to 5;
            subject = rand("uniform");
            output;
            end;
        end;
    end;
drop i;
run;

proc rank data=design out=assign;
var subject;
run;
PG