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

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

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