SAS/STAT 9.2 User's Guide: The ANOVA Procedure (Book Excerpt)
Three-Way ANOVA Analysis by SAS Interaction Plot by Excel.
-
Upload
kalyn-cabbage -
Category
Documents
-
view
254 -
download
3
Transcript of Three-Way ANOVA Analysis by SAS Interaction Plot by Excel.
![Page 1: Three-Way ANOVA Analysis by SAS Interaction Plot by Excel.](https://reader036.fdocuments.net/reader036/viewer/2022081505/551aa96f550346e0158b5e39/html5/thumbnails/1.jpg)
Three-Way ANOVA
Analysis by SASInteraction Plot by Excel
![Page 2: Three-Way ANOVA Analysis by SAS Interaction Plot by Excel.](https://reader036.fdocuments.net/reader036/viewer/2022081505/551aa96f550346e0158b5e39/html5/thumbnails/2.jpg)
The Design
Type of Crime: Burglary or SwindleCulture of Defendant: American or
ChineseSex of Juror: Female or MaleDV: Recommended length of
sentence
![Page 3: Three-Way ANOVA Analysis by SAS Interaction Plot by Excel.](https://reader036.fdocuments.net/reader036/viewer/2022081505/551aa96f550346e0158b5e39/html5/thumbnails/3.jpg)
Read in the Data
Data JurySimulation;Infile 'C:\Users\Vati\Documents\
SimData\ANOVA3B-13.dat';Input Culture $ Crime $ Sex $
Sentence;
![Page 4: Three-Way ANOVA Analysis by SAS Interaction Plot by Excel.](https://reader036.fdocuments.net/reader036/viewer/2022081505/551aa96f550346e0158b5e39/html5/thumbnails/4.jpg)
Omnibus Analysis
Proc ANOVA;Class Sex Culture Crime;Model Sentence = Sex|Culture|
Crime; Means Sex|Culture|Crime; run;
![Page 5: Three-Way ANOVA Analysis by SAS Interaction Plot by Excel.](https://reader036.fdocuments.net/reader036/viewer/2022081505/551aa96f550346e0158b5e39/html5/thumbnails/5.jpg)
Results & Follow-Up
The triple interaction is significantConduct simple interaction analysisTest Culture x Crime for each sexI asked you to do the simple
interaction analysis even if the triple interaction was not significant
![Page 6: Three-Way ANOVA Analysis by SAS Interaction Plot by Excel.](https://reader036.fdocuments.net/reader036/viewer/2022081505/551aa96f550346e0158b5e39/html5/thumbnails/6.jpg)
Simple Interaction Effects
Proc Sort; By Sex;Proc ANOVA;Class Culture Crime;Model Sentence = Culture|Crime;By Sex; run;
![Page 7: Three-Way ANOVA Analysis by SAS Interaction Plot by Excel.](https://reader036.fdocuments.net/reader036/viewer/2022081505/551aa96f550346e0158b5e39/html5/thumbnails/7.jpg)
Results & Follow-Up
• For each simple interaction that is significant, test the simple, simple main effects.
• Effect of type of crime at given levels of culture and sex.
• I asked you to do these tests regardless of whether or not the simple interaction was significant
![Page 8: Three-Way ANOVA Analysis by SAS Interaction Plot by Excel.](https://reader036.fdocuments.net/reader036/viewer/2022081505/551aa96f550346e0158b5e39/html5/thumbnails/8.jpg)
Simple, Simple Main Effects
Proc Sort; By Sex Culture;Proc ANOVA; Class Crime;Model Sentence = Crime;By Sex Culture; run;
![Page 9: Three-Way ANOVA Analysis by SAS Interaction Plot by Excel.](https://reader036.fdocuments.net/reader036/viewer/2022081505/551aa96f550346e0158b5e39/html5/thumbnails/9.jpg)
The Comparisons Made
Compare length of sentence for burglars versus swindlers whenJuror is female, defendant is AmericanJuror is female, defendant is ChineseJuror is male, defendant is AmericanJuror is male, defendant is Chinese
![Page 10: Three-Way ANOVA Analysis by SAS Interaction Plot by Excel.](https://reader036.fdocuments.net/reader036/viewer/2022081505/551aa96f550346e0158b5e39/html5/thumbnails/10.jpg)
Prepare an Interaction Plot• Enter the appropriate means into
Excel (2010)• These are for the female jurors
![Page 11: Three-Way ANOVA Analysis by SAS Interaction Plot by Excel.](https://reader036.fdocuments.net/reader036/viewer/2022081505/551aa96f550346e0158b5e39/html5/thumbnails/11.jpg)
Insert, Charts, Line
![Page 12: Three-Way ANOVA Analysis by SAS Interaction Plot by Excel.](https://reader036.fdocuments.net/reader036/viewer/2022081505/551aa96f550346e0158b5e39/html5/thumbnails/12.jpg)
Select “Line With Markers”
![Page 13: Three-Way ANOVA Analysis by SAS Interaction Plot by Excel.](https://reader036.fdocuments.net/reader036/viewer/2022081505/551aa96f550346e0158b5e39/html5/thumbnails/13.jpg)
Tweak the Vertical Axis
![Page 14: Three-Way ANOVA Analysis by SAS Interaction Plot by Excel.](https://reader036.fdocuments.net/reader036/viewer/2022081505/551aa96f550346e0158b5e39/html5/thumbnails/14.jpg)
Gee Whiz
![Page 15: Three-Way ANOVA Analysis by SAS Interaction Plot by Excel.](https://reader036.fdocuments.net/reader036/viewer/2022081505/551aa96f550346e0158b5e39/html5/thumbnails/15.jpg)
Add Axis Titles
![Page 16: Three-Way ANOVA Analysis by SAS Interaction Plot by Excel.](https://reader036.fdocuments.net/reader036/viewer/2022081505/551aa96f550346e0158b5e39/html5/thumbnails/16.jpg)
Enter Text in Title Box
Then do the same for the Vertical Axis
![Page 17: Three-Way ANOVA Analysis by SAS Interaction Plot by Excel.](https://reader036.fdocuments.net/reader036/viewer/2022081505/551aa96f550346e0158b5e39/html5/thumbnails/17.jpg)
Enter Chart Title
![Page 18: Three-Way ANOVA Analysis by SAS Interaction Plot by Excel.](https://reader036.fdocuments.net/reader036/viewer/2022081505/551aa96f550346e0158b5e39/html5/thumbnails/18.jpg)
Other Tweaks
• Resize the chart• Change fonts• Remove or change grid lines• Et cetera• Then copy the chart to Word,
PowerPoint, or other application.
![Page 19: Three-Way ANOVA Analysis by SAS Interaction Plot by Excel.](https://reader036.fdocuments.net/reader036/viewer/2022081505/551aa96f550346e0158b5e39/html5/thumbnails/19.jpg)
![Page 20: Three-Way ANOVA Analysis by SAS Interaction Plot by Excel.](https://reader036.fdocuments.net/reader036/viewer/2022081505/551aa96f550346e0158b5e39/html5/thumbnails/20.jpg)
Prepare the Second Plot
• We need a plot for the male jurors too.• Enter the appropriate data into Excel.• Tweak the plot so it has the same dimensions
as the previous plot.• If you do not, Excel may scale it in a way that
distorts the differences between the two plots.
![Page 21: Three-Way ANOVA Analysis by SAS Interaction Plot by Excel.](https://reader036.fdocuments.net/reader036/viewer/2022081505/551aa96f550346e0158b5e39/html5/thumbnails/21.jpg)