15d-Anova_Intro

15d-Anova_Intro - EXST7015 : Statistical Techniques II...

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

View Full Document Right Arrow Icon
EXST7015 : Statistical Techniques II Geaghan Analysis of Variance Introductory SAS example Page 1 15d-Anova_Intro.doco 1 **EXAMPLE 1******************************************************; 2 *** Example of unbalanced CRD with experimental error ***; 3 *** From Snedecor & Cochran, 1967 (pg 278) ***; 4 *****************************************************************; 5 OPTIONS PS=256 LS=78 NOCENTER NODATE PAGENO=1; 6 dm 'log;clear;output;clear'; 7 DATA MICE onebyone; INFILE CARDS MISSOVER; 8 INPUT STRAIN $ 1-4 DAYS NUMBER; 9 TITLE1 'EXST7015: DAYS TO DEATH FOR MICE INOCULATED WITH 3 TYPHOID STRAINS'; 10 TITLE2 'UNEQUAL NUMBER OF MICE IN EACH TREATMENT'; 11 do i = 1 to number by 1; output onebyone; end; 12 output mice; 13 CARDS; NOTE: The data set WORK.MICE has 31 observations and 4 variables. NOTE: The data set WORK.ONEBYONE has 224 observations and 4 variables. NOTE: DATA statement used: real time 0.07 seconds cpu time 0.07 seconds 13 ! RUN; 45 ; 46 PROC PRINT data=mice; TITLE3 'RAW DATA LISTING'; RUN; NOTE: There were 31 observations read from the data set WORK.MICE. NOTE: The PROCEDURE PRINT printed page 1. NOTE: PROCEDURE PRINT used: real time 0.04 seconds cpu time 0.04 seconds EXST7015: DAYS TO DEATH FOR MICE INOCULATED WITH 3 TYPHOID STRAINS 1 UNEQUAL NUMBER OF MICE IN EACH TREATMENT RAW DATA LISTING Obs STRAIN DAYS NUMBER i 1 9D 2 6 7 2 9D 3 4 5 3 9D 4 9 10 4 9D 5 8 9 5 9D 6 3 4 6 9D 7 1 2 7 11C 2 1 2 8 11C 3 3 4 9 11C 4 3 4 10 11C 5 6 7 11 11C 6 6 7 12 11C 7 14 15 13 11C 8 11 12 14 11C 9 4 5 15 11C 10 6 7 16 11C 11 2 3 17 11C 12 3 4 18 11C 13 1 2 19 DSC1 2 3 4 20 DSC1 3 5 6 21 DSC1 4 5 6 22 DSC1 5 8 9 23 DSC1 6 19 20 24 DSC1 7 23 24 25 DSC1 8 22 23 26 DSC1 9 14 15 27 DSC1 10 14 15 28 DSC1 11 7 8 29 DSC1 12 8 9 30 DSC1 13 4 5 31 DSC1 14 1 2 47 PROC MIXED DATA=OnebyOne cl covtest; CLASSES STRAIN; 48 TITLE3 'ANALYSIS OF VARIANCE'; 49 MODEL DAYS = STRAIN / htype=3 DDFM=Satterthwaite outp=ResidDataP; 50 repeated / group=strain; 51 run; NOTE: Convergence criteria met. NOTE: The data set WORK.RESIDDATAP has 224 observations and 11 variables. NOTE: The PROCEDURE MIXED printed page 2. NOTE: PROCEDURE MIXED used: real time 0.14 seconds cpu time 0.13 seconds
Background image of page 1

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

View Full DocumentRight Arrow Icon
EXST7015 : Statistical Techniques II Geaghan Analysis of Variance Introductory SAS example Page 2 15d-Anova_Intro.doco EXST7015: DAYS TO DEATH FOR MICE INOCULATED WITH 3 TYPHOID STRAINS 2 UNEQUAL NUMBER OF MICE IN EACH TREATMENT ANALYSIS OF VARIANCE The Mixed Procedure Model Information Data Set WORK.ONEBYONE Dependent Variable DAYS Covariance Structure Variance Components Group Effect STRAIN Estimation Method REML Residual Variance Method None Fixed Effects SE Method Model-Based Degrees of Freedom Method Satterthwaite Class Level Information Class Levels Values STRAIN 3 11C 9D DSC1 Dimensions Covariance Parameters 3 Columns in X 4 Columns in Z 0 Subjects 224 Max Obs Per Subject 1 Observations Used 224 Observations Not Used 0 Total Observations 224 Iteration History Iteration Evaluations -2 Res Log Like
Background image of page 2
Image of page 3
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 / 9

15d-Anova_Intro - EXST7015 : Statistical Techniques II...

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

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