BookmarkSubscribeRSS Feed
Calcite | Level 5



This is a probably very basic question, but as I've never coded anything or been involved in this kind of work before, I am starting with almost zero knowledge of this area:


I am a grad student working with a professor as an assistant on a research project. We are looking to use blocked random assignment for our study and found an article that included a code written (in SAS) for this kind of random assignment. What all is involved in the actual use of a code from SAS? Do we need the SAS software? What would be the step-by-step process of using it to generate blocked random assignments?


Thank you for any help you can offer!

Super User

If the code is SAS then likely you need to have a version of SAS available.

For students and teaching professors there is a version, SAS On Demand for Academics, that is web-based and free.


If the code uses Proc Plan then likely most of what you need is to enter the code with the bits that you need. Depending on how close the example you have fits your need that may be simple or complex.

If the code does not use Proc Plan then there may be more work involved. We would have to see the example you found to know.


There will be some details about downloading the results from the web.


Rhodochrosite | Level 12

If you are looking for a randomized block design (I'm not sure from your question) use this macro.



Secure your spot at the must-attend AI and analytics event of 2024: SAS Innovate 2024! Get ready for a jam-packed agenda featuring workshops, super demos, breakout sessions, roundtables, inspiring keynotes and incredible networking events.


Register by March 1 to snag the Early Bird rate of just $695! Don't miss out on this exclusive offer. 


Register now!

5 Steps to Your First Analytics Project Using SAS

For SAS newbies, this video is a great way to get started. James Harroun walks through the process using SAS Studio for SAS OnDemand for Academics, but the same steps apply to any analytics project.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 3 in conversation