Rev 11342 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
\name{HairEyeColor}\alias{HairEyeColor}\title{Hair and Eye Color of Statistics Students}\usage{data(HairEyeColor)}\description{Distribution of hair and eye color and sex in 592 statistics students.}\format{A 3-dimensional array resulting from cross-tabulating 592observations on 3 variables. The variables and their levels are asfollows:\tabular{rll}{No \tab Name \tab Levels \cr1 \tab Hair \tab Black, Brown, Red, Blond \cr2 \tab Eye \tab Brown, Blue, Hazel, Green \cr3 \tab Sex \tab Male, Female}}\details{This data set is useful for illustrating various techniques for theanalysis of contingency tables, such as the standard chi-squared testor, more generally, log-linear modelling, and graphical methods suchas mosaic plots, sieve diagrams or association plots.}\references{Snee, R. D. (1974),Graphical display of two-way contingency tables.\emph{The American Statistician}, \bold{28}, 9--12.Friendly, M. (1992),Graphical methods for categorical data.\emph{SAS User Group International Conference Proceedings}, \bold{17},190--200.\url{http://hotspur.psych.yorku.ca/SCS/sugi/sugi17-paper.html}Friendly, M. (1992),Mosaic displays for loglinear models.\emph{Proceedings of the Statistical Graphics Section},American Statistical Association, pp. 61--68.\url{http://hotspur.psych.yorku.ca/SCS/Papers/asa92.html}}\seealso{\code{\link[ctest]{chisq.test}},\code{\link{loglin}},\code{\link{mosaicplot}}}\examples{data(HairEyeColor)## Full mosaicmosaicplot(HairEyeColor)## Aggregate over sex:x <- apply(HairEyeColor, c(1, 2), sum)xmosaicplot(x, main = "Relation between hair and eye color")}\keyword{datasets}