Ttest_anova - title2'ANOVA for Adjcereal dataset t proc glm data=sasdata.Adjcereal class shelf model sugar = shelf run r title2'Check for

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

View Full Document Right Arrow Icon
dm 'log;clear;output;clear;'; options ps=50 ls=75 pageno=1; o *********************************************************************; ** **; ** COURSE: STAT 6360 **; ** PURPOSE: Show how to do t test and anova **; *********************************************************************; * *The following title will appear as the first line of every page in the output window; title1 'STAT 6360'; t title2 'One sample t-test'; t proc ttest data=SASdata.blood alpha=0.05 H0=5; var RBC; run; r title2 'Two sample independent t-test'; t proc ttest data=sasdata.blood alpha=0.05 H0=0; class gender; var RBC; run; r data sasdata.pizza; input subject A B; datalines; 1 12.9 16 2 5.7 7.5 3 16 16 4 14.3 15.7 5 2.4 13.2 6 1.6 5.4 7 14.6 15.5 8 10.2 11.3 9 4.3 15.4 10 6.6 10.6 ; run; r title2 'Two sample paired t-test'; proc ttest data=sasdata.pizza alpha=0.05 H0=0; paired A*B; run; r **********************************************************; *ANOVA using PROC GLM
Background image of page 1

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

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

Unformatted text preview: *; **********************************************************; * title2 'ANOVA for Adjcereal dataset'; t proc glm data=sasdata.Adjcereal; class shelf; model sugar = shelf; run; r title2 'Check for differences between means for all shelves'; t proc glm data=sasdata.Adjcereal; class shelf; model sugar = shelf; means shelf / lsd alpha=0.05; means shelf / bon alpha=0.05; run; r title2 'Check for differences between means for all shelves'; t proc glm data=sasdata.Adjcereal; class shelf; model sugar = shelf; means shelf / tukey alpha=0.05; run; r title2 'Confidence intervals for differences between means for all shelves'; t proc glm data=sasdata.Adjcereal; class shelf; model sugar = shelf; means shelf / lsd cldiff alpha=0.05; run; r title2 'ANOVA vs T-test'; t proc glm data=sasdata.blood; class gender; model RBC = gender; run; r...
View Full Document

This note was uploaded on 06/06/2011 for the course STAT 4360 taught by Professor Park during the Spring '11 term at University of Georgia Athens.

Page1 / 2

Ttest_anova - title2'ANOVA for Adjcereal dataset t proc glm data=sasdata.Adjcereal class shelf model sugar = shelf run r title2'Check for

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