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

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

Multiple Linear Regression in SAS

Learn how to run multiple linear regression models with and without interactions, presented by SAS user Alex Chaplin.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 619 views
  • 0 likes
  • 2 in conversation