21d-Anova_Treatments

21d-Anova_Treatments - EXST7015 : Statistical Techniques II...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Geaghan ANOVA – Treatment Arrangements SAS example Page 1 21d-Anova_Treatments.doc 1 dm"log;clear;output;clear"; 2 3 options ps=61 ls=78 nocenter nonumber nodate; 4 **EXAMPLE 7********************************************; 5 *** Example of a Factorial Design ***; 6 *** From Snedecor & Cochran, 1980 (pg 305) ***; 7 *******************************************************; 8 OPTIONS PS=256 LS=78 NOCENTER NODATE PAGENO=1; 9 DATA RATS (KEEP=LEVEL SOURCE REP TREATMNT GAIN); INFILE CARDS MISSOVER; 10 ARRAY G GAIN1-GAIN10; 11 INPUT LEVEL $ SOURCE $ TREATMNT $ 1-11 GAIN1-GAIN10; 12 DO REP = 1 TO 10; 13 GAIN = G{REP}; OUTPUT; END; 14 TITLE1 'EXST7015: WEIGHT GAIN IN RATS ON VARIOUS DIETS'; 15 TITLE2 'FACTORIAL DESIGN (2 POR 3) WITH REPLICATES'; 16 CARDS; NOTE: The data set WORK.RATS has 60 observations and 5 variables. NOTE: DATA statement used: real time 3.46 seconds cpu time 0.07 seconds 16 ! RUN; 23 ; 24 PROC PRINT; TITLE3 'RAW DATA LISTING'; RUN; NOTE: There were 60 observations read from the data set WORK.RATS. NOTE: The PROCEDURE PRINT printed page 1. NOTE: PROCEDURE PRINT used: real time 1.19 seconds cpu time 0.03 seconds EXST7015: WEIGHT GAIN IN RATS ON VARIOUS DIETS FACTORIAL DESIGN (2 POR 3) WITH REPLICATES RAW DATA LISTING Obs LEVEL SOURCE TREATMNT REP GAIN 1 HIGH BEEF HIGH BEEF 1 73 2 HIGH BEEF HIGH BEEF 2 102 3 HIGH BEEF HIGH BEEF 3 118 4 HIGH BEEF HIGH BEEF 4 104 5 HIGH BEEF HIGH BEEF 5 81 6 HIGH BEEF HIGH BEEF 6 107 7 HIGH BEEF HIGH BEEF 7 100 8 HIGH BEEF HIGH BEEF 8 87 9 HIGH BEEF HIGH BEEF 9 117 10 HIGH BEEF HIGH BEEF 10 111 11 HIGH CEREAL HIGH CEREAL 1 98 12 HIGH CEREAL HIGH CEREAL 2 74 13 HIGH CEREAL HIGH CEREAL 3 56 14 HIGH CEREAL HIGH CEREAL 4 111 15 HIGH CEREAL HIGH CEREAL 5 95 16 HIGH CEREAL HIGH CEREAL 6 88 17 HIGH CEREAL HIGH CEREAL 7 82 18 HIGH CEREAL HIGH CEREAL 8 77 19 HIGH CEREAL HIGH CEREAL 9 86 20 HIGH CEREAL HIGH CEREAL 10 92 21 HIGH PORK HIGH PORK 1 94 22 HIGH PORK HIGH PORK 2 79 23 HIGH PORK HIGH PORK 3 96 24 HIGH PORK HIGH PORK 4 98 25 HIGH PORK HIGH PORK 5 102 26 HIGH PORK HIGH PORK 6 102 27 HIGH PORK HIGH PORK 7 108 28 HIGH PORK HIGH PORK 8 91 29 HIGH PORK HIGH PORK 9 120 30 HIGH PORK HIGH PORK 10 105 31 LOW BEEF LOW BEEF 1 90 32 LOW BEEF LOW BEEF 2 76 33 LOW BEEF LOW BEEF 3 90 34 LOW BEEF LOW BEEF 4 64 35 LOW BEEF LOW BEEF 5 86 36 LOW BEEF LOW BEEF 6 51 37 LOW BEEF LOW BEEF 7 72 38 LOW BEEF LOW BEEF 8 90 39 LOW BEEF LOW BEEF 9 95 40 LOW BEEF LOW BEEF 10 78 41 LOW CEREAL LOW CEREAL 1 107 42 LOW CEREAL LOW CEREAL 2 95 43 LOW CEREAL LOW CEREAL 3 97 44 LOW CEREAL LOW CEREAL 4 80 45 LOW CEREAL LOW CEREAL 5 98 46 LOW CEREAL LOW CEREAL 6 74 47 LOW CEREAL LOW CEREAL 7 74 48 LOW CEREAL LOW CEREAL 8 67 49 LOW CEREAL LOW CEREAL 9 89 50 LOW CEREAL LOW CEREAL 10 58 51 LOW PORK LOW PORK 1 49 52 LOW PORK LOW PORK 2 82 53 LOW PORK LOW PORK 3 73 54 LOW PORK LOW PORK 4 86 55 LOW PORK LOW PORK 5 81 56 LOW PORK LOW PORK 6 97 57 LOW PORK LOW PORK 7 106 58 LOW PORK LOW PORK 8 70 59 LOW PORK LOW PORK 9 61 60 LOW PORK LOW PORK 10 82
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 12/29/2011 for the course EXST 7087 taught by Professor Wang,j during the Fall '08 term at LSU.

Page1 / 16

21d-Anova_Treatments - EXST7015 : Statistical Techniques II...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online