Programming and Application(编程与应用)


Content(目录)




Linux


MySQL
Office















 
PCNow 30-Day Free Trial, Remote PC Access
 
Logo_234x60

Generating the treatment layout of a completely randomized (CR) design


Generating the treatment layout of a completely randomized (CR) design

Zhanshan Dong

This a small SAS program to generate the treatment layouts of a completely randomized (CR) design. Use any text editor to enter the following program and save it to a file with a file extension ".SAS". Then you can run the program in SAS. You can change the number of treatments (th) and the number of replications (rep) in the program according to your particular needs.

options ps=60 ls=70;

data set1;
  do th = 1 to 8;
    do rep = 1 to 9;
     ran = ranuni(0);
     output;
    end;
  end;
run;

proc sort;
  by ran;
run;

proc print;
  var th rep ran;
run;
©董占山Zhanshan Dong

Post comments(留言)

Name(名字):

Comment(内容):


由Google提供

SunfineData Products|U's Bargain Network|Contact Me(与我联系)
© 1998-, 董占山, 版权所有, 欢迎转载文章链接。
转载文章和软件请注明出处(http://articles.sunfinedata.com/)。