'Life is after all a recursive summation, indeed     Let's do some Statistics!

Department of Civil and Environmental Engineering
Frank Batten College of Engineering and Technology
Old Dominion University
Norfolk, Virginia 23529-0241, USA
Tel) (757) 683-3753
Fax) (757) 683-5354


	
Return to CEE 700/800 Homepage
CEE 700/800 Access Counter
 
Go back to
SAS Source Page
Randomized Complete Block (RCB) Design
SAS Source: RCB.SAS

Example

Three different washing solutions are being compared to study their effectiveness in retarding bacteria growth in 5-gal milk containers. The analysis is done in a lab, and only three trials can be run on any given day.

Because days could represent a potential source of variability, the experimenter decides to use a randomized block design. Observation were taken for four days, and the data are shown below. Analyze the data and draw conclusions.

Solution (%) Days
1 2 3 4
1 13 22 18 39
2 16241744
3 5 4 1 22

Use following SAS source to analyze above problem. Closely examine comments in the source for specific model options.

SAS Listing


OPTIONS LINESIZE=80;
TITLE1 'Randomized Complete Block (RCB) Design ';
TITLE2 'Response Var. : Effectiveness in retarding bacteria';
TITLE3 'Treatment     : Washing solutions';
TITLE4 'Block         : Testing days  ';
DATA BACTERIA;
/* @@ means a loop in reading input variable sequence */
INPUT DAYS SOLUTION EFFECTNS @@;
CARDS;
1 1 13 2 1 22 3 1 18 4 1 39
1 2 16 2 2 24 3 2 17 4 2 44
1 3  5 2 3  4 3 3  1 4 3 22
;
RUN;

/* Print the original data set                   */
PROC PRINT;
RUN;

/* Create Table & tabulate input data set        */
/* Nicety, but not absolutely necessary for      */
/* the analysis - you may skip                   */
PROC TABULATE;
     CLASS SOLUTION DAYS ;
     VAR EFFECTNS;
     TABLE SOLUTION, DAYS*EFFECTNS;
     KEYLABEL SUM='Y(IJ)';
RUN;

/* Analysis of Variance (ANOVA)                  */
PROC ANOVA;
     CLASS DAYS SOLUTION;
/* Dependent = Effects                           */
     MODEL  EFFECTNS = DAYS SOLUTION;
RUN;

SAS Listing

SAS User Guide (SUG) for Procedures (PROC) used in the Source

SUG ANOVA procedure
SUG PRINT procedure
SUG TABULATE procedure
Go back to
SAS Source Page

Return to CEE 700/800 Homepage Return to CEE 700/800 Homepage Move to the Top of this page