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

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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
  • 612 views
  • 0 likes
  • 2 in conversation