occupationalStatus(datasets)
occupationalStatus()所属R语言包:datasets
Occupational Status of Fathers and their Sons
父亲的职业地位和他们的儿子
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Cross-classification of a sample of British males according to each subject's occupational status and his father's occupational status.
根据每个主体的职业地位和他父亲的职业地位的英国男性样本的交叉分类。
用法----------Usage----------
格式----------Format----------
A table of counts, with classifying factors origin (father's occupational status; levels 1:8) and destination (son's occupational status; levels 1:8).
一个table计数与分类因素,origin(父亲的职业地位;水平1:8)destination(儿子的职业地位;水平1:8)。
源----------Source----------
Goodman, L. A. (1979) Simple Models for the Analysis of Association in Cross-Classifications having Ordered Categories. J. Am. Stat. Assoc., 74 (367), 537–552.
古德曼,LA(1979)的协会在有序分类的交叉分类分析的简单模型。研究时。统计。副教授,74(367),537-552。
The data set has been in package gnm and been provided by the package authors.
数据集在包gnm和包作者提供。
举例----------Examples----------
require(stats); require(graphics)
plot(occupationalStatus)
## Fit a uniform association model separating diagonal effects[#适合一个统一的关联模型,分离对角线效果。]
Diag <- as.factor(diag(1:8))
Rscore <- scale(as.numeric(row(occupationalStatus)), scale = FALSE)
Cscore <- scale(as.numeric(col(occupationalStatus)), scale = FALSE)
modUnif <- glm(Freq ~ origin + destination + Diag + Rscore:Cscore,
family = poisson, data = occupationalStatus)
summary(modUnif)
plot(modUnif) # 4 plots, with warning about h_ii ~= 1[4图,警告约h_ii〜= 1]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|