eyes | R Documentation |
Joint distribution of visual impairment on both eyes, by race and age.
data(eyes)
A data frame with 32 observations on the following 6 variables.
Impairment (+) or not (-) for left eye.
Impairment (+) or not (-) for right eye.
a factor with levels 40-50
51-60
61-70
70+
White (W) or black (B)
mid-point for age groups, as numeric vector
Number of individuals in each class
K.-Y. Liang, S. L. Zeger and B. Qaqish (1992) Multivariate regression analyses for categorical data (with Discussion). Journal of the Royal Statistical Society, series B, 54, 3–40.
Davison, A. C. (2003) Statistical Models. Cambridge University Press. Page 505.
data(eyes)
eyes.glm <- glm(y~age*colour+L*R+(L+R):poly(a,2)+colour:(L+R),poisson,data=eyes)
anova(eyes.glm,test="Chi") # analysis of deviance for loglinear model
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.