Stat 665 (Spring 2011)
Kaizar
Solutions 5
Exercises 20 points total
1. Problem 3.11, b and c
(b) Using R, I found the following output:
(Intercept)
x
Estimate Std. Error z value Pr(>|z|)
1.6094
0.1414
Stat 665 (Spring 2011)
Kaizar
Homework 5
Due at the beginning of class, Friday May 6.
Aim of Homework: To practice computing with GLMs.
Reading: An Introduction to Categorical Data Analysis, 2nd editi
Stat 665 (Spring 2011)
Kaizar
Homework 2
Due at the beginning of class, Friday April 15.
Aim of Homework: To think about dierent kinds of categorical data. To apply dierent measures
of association in
Stat 665 (Spring 2011)
Kaizar
Solutions 6
Exercises 40 points total
1. (8 points) Problem 4.8
(a) From the R output:
Coefficients:
Estimate Std. Error z value Pr(>|z|)
(Intercept) -3.6947
0.8802 -4.19
Stat 665 (Spring 2011)
Kaizar
Homework 6
Due at the beginning of class, Friday May 20.
Aim of Homework: To apply, evaluate and interpret logistic regression models for categorical
responses and either
Stat 665 (Spring 2011)
Kaizar
Homework 4
Due at the beginning of class, Monday May 2.
Aim of Homework: To practice working with GLMs.
Reading: An Introduction to Categorical Data Analysis, 2nd edition
Stat 665 (Spring 2011)
Kaizar
Homework 7
Due at the beginning of class, Friday May 27.
Aim of Homework: To interpret models to t multivariate outcomes. To t and interpret loglinear models.
Reading: An
Stat 665 (Spring 2011)
Kaizar
Solutions 4
Exercises 40 points total
1. Toothpaste experiment:
(a) The outcome of interest is cavity 2, the number of cavities after 2 years of treatment.
(b) Any of the
Stat 665 (Spring 2011)
Kaizar
Solutions 2
Exercises 40 points total
1. (8 points) Agresti 2.16
(a) Response: lung cancer
Explanatory: have smoked (or not)
(b) case-control study
(c) No. This would be
Stat 665 (Spring 2011)
Kaizar
Solutions 1
Exercises 40 points total
1. (6 points) Agresti problem 1.8 (use both the score and exact methods dont use Wald!)
(a) pi =
y
n
=
344
1170
= 0.294.
(b) The wor
Stat 665, Spring 2011, Kaizar
Log-Linear Piano Example
Pianos
Orchestra
Boston
Chicago
Cleveland
Minnesota
New York
Steinway
36
156
121
22
99
Piano Type
Other
18
12
20
22
22
Pianos
Boston
140
120
100
Stat 665 (Spring 2011)
Kaizar
Homework 3
Due at the beginning of class, Monday April 25.
Aim of Homework: To think about dierent kinds of categorical data. To apply dierent measures
of association in
Stat 665 (Spring 2011)
Kaizar
Homework 1
Due by the beginning of class, Friday April 8.
Aim of Homework: To review concepts of Wald, score and likelihood ratio testing. To review
concepts of tests and
Stat 665 (Spring 2011)
Kaizar
Conditional Association
1
Estimating Conditional Association under Homogeneity: Fixed
Eects
1.1
Mantel-Haenszel Statistic
K
k =1
Var log M H
=
1
2R 2
n11k n22k
n+k
K
k =1
Stat 665 (Spring 2011)
Kaizar
Airline Example
Delay
on time delay Total
American
5317 3237 8554
Airline
United
1170
793 1963
Total
6487 4030 10517
=
5317793
11703237
= 1.113
Pearsons Chi-Squared: X 2