HairEyeColor(datasets)
HairEyeColor()所属R语言包:datasets
Hair and Eye Color of Statistics Students
头发和眼睛的有色人种学生统计
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Distribution of hair and eye color and sex in 592 statistics students.
分布在592统计学生的头发和眼睛颜色和性别。
用法----------Usage----------
格式----------Format----------
A 3-dimensional array resulting from cross-tabulating 592 observations on 3 variables. The variables and their levels are as follows:
3跨制表592观察3个变量的二维数组。变量和水平如下:
Name
名称
Hair
头发
Eye
眼
Sex
性别
Details
详情----------Details----------
The Hair x Eye table comes rom a survey of students at the University of Delaware reported by Snee (1974). The split by Sex was added by Friendly (1992a) for didactic purposes.
头发x眼表自带ROM调查报告Snee(1974)在美国特拉华大学的学生。的Sex分裂被添加通过友好(1992年)为教学目的。
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.
这组数据说明联表分析的各种技术,如卡方检验标准,或者更普遍的是,对数线性模型,如镶嵌图,筛图或关联图的图形方法,非常有用。
源----------Source----------
http://euclid.psych.yorku.ca/ftp/sas/vcd/catdata/haireye.sas
Snee (1974) gives the two-way table aggregated over Sex. The Sex split of the "Brown hair, Brown eye" cell was changed in R 2.6.0 to agree with that used by Friendly (2000).
snee(1974)给出了Sex双向表的汇总。性别的分裂“的棕色头发,棕色眼睛的单元被改变,在R 2.6.0以同意通过友好的使用(2000年)。
参考文献----------References----------
Graphical display of two-way contingency tables. The American Statistician, 28, 9–12.
Graphical methods for categorical data. SAS User Group International Conference Proceedings, 17, 190–200. http://www.math.yorku.ca/SCS/sugi/sugi17-paper.html
Mosaic displays for loglinear models. Proceedings of the Statistical Graphics Section, American Statistical Association, pp. 61–68. http://www.math.yorku.ca/SCS/Papers/asa92.html
Visualizing Categorical Data. SAS Institute, ISBN 1-58025-660-0.
参见----------See Also----------
chisq.test, loglin, mosaicplot
chisq.test,loglin,mosaicplot
举例----------Examples----------
require(graphics)
## Full mosaic[#全部镶嵌]
mosaicplot(HairEyeColor)
## Aggregate over sex (as in Snee's original data)[#总结了性别(Snee的原始数据)]
x <- apply(HairEyeColor, c(1, 2), sum)
x
mosaicplot(x, main = "Relation between hair and eye color")
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|