Statistics 659

Section 600, Spring 2007, Prof. T. E. Wehrly


All material on these web pages is copyright by Thomas E. Wehrly. You are free to copy this material for class purposes, but any other use without the permission of Thomas Wehrly is forbidden.

For comments or questions, e-mail me ( twehrly@stat.tamu.edu ) or contact the Statistics Department .


Messages:



Course Information

Office: 416B Blocker

Phone: 845-1359

Office Hours:



Please Note: Most of the documents for this course are .pdf format files. To preview and print Acrobat files, you can obtain the Adobe Acrobat Reader.

To use the SAS files from my web page, click on SAS files below. A list of files will appear. Then click on the name of the desired file. To save this file to your PC, click on the File menu, and then on Save as ... . Enter a name such as prog.sas to save the file on the PC or a:prog.sas to save it to a disk.

  • Tentative Syllabus for Spring 2007
  • How to Access SAS at TAMU
  • Instructions on Using SAS
  • Instructions on Using SAS for Categorical Data
  • SAS files
  • Back to Top


    Outlines of Lectures

  • Notes for Chapter 1
  • Notes for Chapter 4
  • Notes for Chapter 5
  • Notes for Chapter 6
  • Notes for Chapter 7
  • Notes for Chapter 8
  • Notes for Chapter 9
  • Notes for Chapter 10
  • Back to Top

    Outline of Material on Tests

  • Material for First Test
  • Material for Second Test
  • Additional Material for Final Exam

  • Examples


    Examples for Course with Simonoff's Text

    Chapter 4
  • SAS Output for Testing Goodness of Fit for the Multinomial Distribution
    Chapter 5
  • SAS Output for Poisson Regression-- Tornado Data
  • SAS Output for Summary Measures for Poisson Regression--Tornado Data
  • SAS Output for Poisson Regression-- Horseshoe Crab Data
  • SAS Output for Poisson Regression-- Horseshoe Crab Grouped Data
    Chapter 6
  • Antibiotic Data Set
  • Polio Vaccine Data Set
  • Antibiotic Data Set Analyzed by Loglinear Models
  • Aspirin and Myocardial Infarction Data Set
  • Drug Use Data Set (modified March 1)
  • Fisher's Tea Tasting Data Set
    Chapter 7
  • Commuter Data Set
  • Infant Malformation
  • McNemar' Test--Approval of Prime Minister Example
  • Premarital and Extramarital Sex Example
    Chapter 8
  • Respiratory Disease Data Set
  • Simpson's Paradox Example
  • Coronary Artery Disease Data Set
  • Worker Satisfaction Data Set Analyzed by Loglinear Models
  • Stillbirth Data Set
    Chapter 9
  • Logistic Regression Analysis of the Beetle Data
  • Horseshoe Crab Data (Logistic Regression)-Part I
  • Antibiotic Data Set Analyzed by Logistic Regression
  • Analysis of the Infant Malformation Data Using Logistic Regression
  • Coronary Artery Disease Data Set Analyzed with Logistic Regression
  • Horseshoe Crab Data (Logistic Regression Analyses from Agresti's book)
  • Kyphosis Data (from Hastie and Tibshirani)
  • Univariate Analysis of the UMARU Data
  • Main Effects Analysis of the UMARU Data
  • Interaction Analysis of the UMARU Data
    Chapter 10
  • Multicategory Logistic Regression--Alligator Food Preference Data
  • Multicategory Logistic Regression--Mammography Experience Data
  • Multicategory Logistic Regression--Political Ideology Example
    Back to Top

    Examples for Course with Agresti's Text

    Chapter 2
  • SAS Output for Antibiotic Data Set
  • SAS Output for Polio Vaccine Data Set
  • SAS Output for Fisher's Tea Tasting Data Set
  • SAS Output for Gender by Party Example
  • SAS Output for the Aspirin and Myocardial Infarction Data Set
  • SAS Output for Drug Use Data Set
  • SAS Output for Tapeworm Data Set
  • SAS Output for Commuter Data Set
  • SAS Output for Commuter Data Set Analyzed as Ordinal Data
  • SAS Output for Commuter Data Set with Trend Test
  • SAS Output for Data in Table 2.7
    Chapter 3
  • SAS Output for Respiratory Disease Data Set
  • SAS Output for Coronary Artery Disease Data Set
  • SAS Output for the Soft Drink Data Set
  • SAS Output for Simpson's Paradox Example
    Chapter 4
  • SAS Output for Poisson Regression-- Tornado Data
    Chapter 5
  • SAS Output for Logistic Regression I--Beetle Data Updated 3/7/05
  • SAS Output for Logistic Regression II--Diagnostics for Beetle Data
  • SAS Output for Horseshoe Crab Data (Logistic Regression)
  • SAS Output for Antibiotic Data Set Analyzed by Logistic Regression
  • SAS Output for Horseshoe Crab Data (Multiple Logistic Regression I)
  • SAS Output for the Analysis of the Infant Malformation Data Using Logistic Regression
  • SAS Output for Coronary Artery Disease Data Set Analyzed with Logistic Regression
  • SAS Output for Horseshoe Crab Data (Multiple Logistic Regression II)
  • Addendum to the SAS Output for the Horseshoe Crab Data (Multiple Logistic Regression II)
  • SAS Output for Horseshoe Crab Data (Multiple Logistic Regression III)
  • SAS Output for Horseshoe Crab Data (Multiple Logistic Regression IV)
  • Summary Measures for 24 Models for the Horseshoe Crab Data
  • Univariate Analysis of the UMARU Data
  • Main Effects Analysis of the UMARU Data
  • Interaction Analysis of the UMARU Data

    Chapter 6

  • SAS Output for Antibiotic Data Set Analyzed by Loglinear Models
  • SAS Output for the Worker Satisfaction Data Set Analyzed by Loglinear Models
  • SAS Output for the Stillbirth Data Set

    Chapter 8

  • Multicategory Logistic Regression--Alligator Food Preference Data
  • Multicategory Logistic Regression--Political Ideology Example
  • Multicategory Logistic Regression--Belief in Afterlife Example

    Chapter 9

  • McNemar' Test--Approval of Prime Minister Example
  • Back to Top

    SAS Files

    Some comments on Homework 2.
    Back to Top

    SAS Programs for Course with Simonoff's Text

    Chapter 4
  • SAS Program for Obtaining a Confidence Interval for a Binomial Proportion
  • SAS Program for Testing Goodness of Fit for a Multinomial Distribution
    Chapter 5
  • SAS Program for Poisson Regression--Tornado Data
  • SAS Macro for Summarizing Overall Measures of Fit for Generalized Linear Models
  • SAS Progam for Summarizing Overall Measures of Fit for the Tornado Data Set
  • SAS Program for Poisson Regression--Horseshoe Crab Data
  • SAS Program for Poisson Regression--Horseshoe Crab Grouped Data
    Chapter 6
  • SAS Program for Antibiotic Data Set
  • SAS Program for Polio Vaccine Data Set
  • SAS Program for Antibiotic Data Set Analyzed by Loglinear Models
  • SAS Program for Aspirin Data Set
  • SAS Program for Drug Use Data Set
  • SAS Program for Fisher's Tea Tasting Data Set
    Chapter 7
  • SAS Program for Commuter Data Set
  • SAS Program for the Infant Malformation Set
  • McNemar' Test--Approval of Prime Minister Example
  • SAS Program for Premarital and Extramarital Sex Example
    Chapter 8
  • SAS Program for Respiratory Disease Data Set
  • SAS Program for Simpson's Paradox Example
  • SAS Program for Coronary Artery Disease Data Set
  • SAS Program for the Worker Satisfaction Data Set Analyzed by Loglinear Models
  • SAS Program for Fitting the Models for the Stillbirth Data Set
  • SAS Program for Summarizing the Fit of Various Models for the Stillbirth Data Set
    Chapter 9
  • SAS Program for Logistic Regression Analysis of the Beetle Data
  • SAS Program for Logistic Regression of Horseshoe Crab Data--Part I
  • SAS Program for Analyzing the Antibiotic Data Set Using Logistic Regression
  • SAS Program for the Reanalysis of the Infant Malformation Data Set
  • SAS Program for Coronary Artery Disease Data Set (Logistic Regression)
  • Brief form of SAS Program for the to Produce Agresti's Analysis of the Horseshoe Crab Data The data values from the above program are omitted.
  • SAS Program for Marginal Model Plots for the Kyphosis Data
  • SAS Program for Marginal Model Plots for the Crab Data
  • SAS Program for the Univariate Analysis of the UMARU Data
  • SAS Program for the Main Effects of the UMARU Data
  • SAS Program for the Interaction Analysis of the UMARU Data
    Chapter 10
  • SAS Program for the Multicategory Logistic Regression Analysis of the Alligator Data
  • SAS Program for the Multicategory Logistic Regression Analysis of the Mammography Data
  • SAS Program for the Multicategory Logistic Regression Analysis of the Political Ideology Data
    Back to Top

    SAS Programs for Course with Agresti's Text

    Note: Agresti's book has SAS programs in the Appendix. The program for analyzing Table 2.7 appears there.

    Chapter 2

  • SAS Program for Antibiotic Data Set
  • SAS Program for Polio Vaccine Data Set
  • SAS Program for Fisher's Tea Tasting Data Set
  • SAS Program for Aspirin Data Set
  • SAS Program for Drug Use Data Set
  • SAS Program for Tapeworm Data Set
  • SAS Program for Commuter Data Set
  • SAS Program for Commuter Data Set (Ordinal Data Analysis)

    Chapter 3

  • SAS Program for Respiratory Disease Data Set
  • SAS Program for Coronary Artery Disease Data Set
  • SAS Program for Soft Drink Data Set
  • SAS Program for Simpson's Paradox Example

    Chapter 4

  • SAS Program for Poisson Regression--Tornado Data
  • SAS Macro for Summarizing Overall Measures of Fit for Generalized Linear Models
  • SAS Progam for Summarizing Overall Measures of Fit for the Tornado Data Set
  • Excel Comma Separated Values File Containing the Tornado Data
  • Agresti's SAS Program for the Horseshoe Crab Data

    Chapter 5

  • SAS Program for Logistic Regression I--Beetle Data
  • Agresti's SAS Program for the Horseshoe Crab Data
  • SAS Program for the to Produce Agresti's Analysis of the Horseshoe Crab Data
  • Brief form of SAS Program for the to Produce Agresti's Analysis of the Horseshoe Crab Data The data values from the above program are omitted.
  • Brief form of SAS Program for Analysis of the Horseshoe Crab Data Fitting a Quadratic Term The data values from the above program are omitted.
  • SAS Program for Analyzing the Antibiotic Data Set Using Logistic Regression
  • SAS Program for the Horseshoe Crab Data--Multiple Logistic Regression
  • SAS Program for the Reanalysis of the Infant Malformation Data Set
  • SAS Program for Coronary Artery Disease Data Set (Logistic Regression)
  • SAS Program for the Horseshoe Crab Data--Multiple Logistic Regression II
  • SAS Program for the Horseshoe Crab Data--Multiple Logistic Regression IV
  • SAS Program for the Univariate Analysis of the UMARU Data
  • SAS Program for the Main Effects of the UMARU Data
  • SAS Program for the Interaction Analysis of the UMARU Data

    Chapter 6

  • SAS Program for Antibiotic Data Set Analyzed by Loglinear Models
  • SAS Program for the Worker Satisfaction Data Set Analyzed by Loglinear Models
  • SAS Program for Fitting the Models for the Stillbirth Data Set
  • SAS Program for Summarizing the Fit of Various Models for the Stillbirth Data Set

    Chapter 8

  • SAS Program for the Multicategory Logistic Regression Analysis of the Alligator Data
  • SAS Program for the Multicategory Logistic Regression Analysis of the Afterlife Data
  • SAS Program for the Multicategory Logistic Regression Analysis of the Political Ideology Data

    Chapter 9

  • McNemar' Test--Approval of Prime Minister Example
  • Back to Top

    Homework Assignments

  • Assignment 1
  • Assignment 2
  • Some comments on Homework 2.
  • Assignment 3
  • Assignment 4
  • To create the mosaic plot for the homework, you can use the instructions for creating mosaic plots by replacing the observed counts in the instructions with the fitted counts.
  • Assignment 5
  • Assignment 6
  • Assignment 7
  • Assignment 8

  • Back to Top

    Solutions to Homework

  • Assignment 1
  • Assignment 2
  • Assignment 3
  • Assignment 4
  • Assignment 5
  • Assignment 6
  • Assignment 7
  • Assignment 8

  • Old Tests

    The problems related to material on Test 1 are indicated in red. The problems related to material on Test 2 are indicated in blue.
  • Test 1 from 2004     1 , 1, 2, 3, 4
  • Solutions to Test 1 from 2004
  • Test 1 from 2005     1, 2b (add 0.5 to each cell), 3a , 1, 2, 3, 4
  • Solutions to Test 1 from 2005
  • Test 2 from 2004     3 , 2a(i,ii)cd
  • SAS Output for Test 2 from 2004
  • Solutions to Test 2 from 2004
  • Test 2 from 2005     1 , 3b, 4a(i,ii,iii)b
  • Solutions to Test 2 from 2005
  • Final Exam from 2004     1, 2, 4abd(i)
  • Computer Output for the Final Exam from 2004 \
  • Solutions to the Final Exam from 2004
  • Final Exam from 2005     2b , 1, 2, 3ab
  • Computer Output for the Final Exam from 2005 \
  • Solutions to the Final Exam from 2005
  • Review Problems on Chapter 4 and 6 Material

  • Back to Top

    Formula Sheets (Agresti's for his course at U.Fl.)

  • Some Formulas for Test 1
  • Some Formulas for Test 2
  • Some Formulas for Test 3

  • Links to R/S+ Sites

  • StatLib R Archives
  • StatLib S Archives
  • Introductory Guide to S+ by Brian Ripley
  • Notes on S+, Part I by Bill Venables and Dave Smith
  • Notes on S+, Part II by Bill Venables and Dave Smith
  • Notes on S+, Part III by Bill Venables and Dave Smith
  • Notes on S+ by Joe Newton
  • Notes on S+, Part I by James Hardin
  • Notes on S+, Part II by James Hardin
  • Other link 1
  • Other link 2 < /a>
  • Other link 3
  • Other link 4
  • Other link 5
  • Other link 6