# R Dataset / Package datasets / HairEyeColor

Attachment | Size |
---|---|

dataset-26840.csv | 851 bytes |

Documentation | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|

On this Picostat.com statistics page, you will find information about the HairEyeColor data set which pertains to Hair and Eye Color of Statistics Students. The HairEyeColor data set is found in the datasets R package. You can load the HairEyeColor data set in R by issuing the following command at the console data("HairEyeColor"). This will load the data into a variable called HairEyeColor. If R says the HairEyeColor data set is not found, you can try installing the package by issuing this command install.packages("datasets") and then attempt to reload the data. If you need to download R, you can go to the R project website. You can download a CSV (comma separated values) version of the HairEyeColor R data set. The size of this file is about 851 bytes. ## Hair and Eye Color of Statistics Students## DescriptionDistribution of hair and eye color and sex in 592 statistics students. ## UsageHairEyeColor ## FormatA 3-dimensional array resulting from cross-tabulating 592 observations on 3 variables. The variables and their levels are as follows:
## DetailsThe Hair This data set is useful for illustrating various techniques for the analysis of contingency tables, such as the standard chi-squared test or, more generally, log-linear modelling, and graphical methods such as mosaic plots, sieve diagrams or association plots. ## Sourcehttp://euclid.psych.yorku.ca/ftp/sas/vcd/catdata/haireye.sas Snee (1974) gives the two-way table aggregated over ## ReferencesSnee, R. D. (1974)
Graphical display of two-way contingency tables.
Friendly, M. (1992a)
Graphical methods for categorical data.
Friendly, M. (1992b)
Mosaic displays for loglinear models.
Friendly, M. (2000)
## See Also
## Examplesrequire(graphics) ## Full mosaic mosaicplot(HairEyeColor) ## Aggregate over sex (as in Snee's original data) x <- apply(HairEyeColor, c(1, 2), sum) x mosaicplot(x, main = "Relation between hair and eye color") -- Dataset imported from https://www.r-project.org. |

Title | Authored on | Content type |
---|---|---|

OpenIntro Statistics Dataset - dream | August 9, 2020 - 12:25 PM | Dataset |

OpenIntro Statistics Dataset - winery_cars | August 9, 2020 - 2:38 PM | Dataset |

R Dataset / Package HSAUR / toothpaste | March 9, 2018 - 1:06 PM | Dataset |

R Dataset / Package HSAUR / pottery | March 9, 2018 - 1:06 PM | Dataset |

R Dataset / Package HistData / Guerry | March 9, 2018 - 1:06 PM | Dataset |