找回密码
 注册
查看: 2713|回复: 0

R语言:fourfoldplot()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-2-17 10:22:51 | 显示全部楼层 |阅读模式
fourfoldplot(graphics)
fourfoldplot()所属R语言包:graphics

                                        Fourfold Plots
                                         四倍图解

                                         译者:生物统计家园网 机器人LoveR

描述----------Description----------

Creates a fourfold display of a 2 by 2 by k contingency table on the current graphics device, allowing for the visual inspection of the association between two dichotomous variables in one or several populations (strata).
创建一个由2 2k当前图形设备上的应变表的四倍显示,从而为在一个或几个群体(阶层)的两个二元变量之间的关联的目视检查。


用法----------Usage----------


fourfoldplot(x, color = c("#99CCFF", "#6699CC"),
             conf.level = 0.95,
             std = c("margins", "ind.max", "all.max"),
             margin = c(1, 2), space = 0.2, main = NULL,
             mfrow = NULL, mfcol = NULL)



参数----------Arguments----------

参数:x
a 2 by 2 by k contingency table in array form, or as a 2 by 2 matrix if k is 1.
k数组形式的应急表2 2,或2×2矩阵k如果1。


参数:color
a vector of length 2 specifying the colors to use for the smaller and larger diagonals of each 2 by 2 table.
向量的长度为2指定的颜色使用2表,每2小和更大的对角线。


参数:conf.level
confidence level used for the confidence rings on the odds ratios.  Must be a single nonnegative number less than 1; if set to 0, confidence rings are suppressed.
用于胜算比信心环置信水平。必须是一个单一的非负数小于1,如果设置为0,被压抑的信心环。


参数:std
a character string specifying how to standardize the table. Must be one of "margins", "ind.max", or "all.max", and can be abbreviated by the initial letter. If set to "margins", each 2 by 2 table is standardized to equate the margins specified by margin while preserving the odds ratio.  If "ind.max" or "all.max", the tables are either individually or simultaneously standardized to a maximal cell frequency of 1.
一个字符串,指定如何规范表。必须"margins","ind.max"或"all.max",可以通过首字母缩写。如果设置为"margins",每次2 2表标准化等同于margin指定的边缘,同时保留的比值比。如果"ind.max"或"all.max",表单独或同时标准化,以最大的单元频率为1。


参数:margin
a numeric vector with the margins to equate.  Must be one of 1, 2, or c(1, 2) (the default), which corresponds to standardizing the row, column, or both margins in each 2 by 2 table. Only used if std equals "margins".
与利润率等同的数字向量。必须1,2或c(1, 2)(默认),对应规范在每个2 2表中的行,列,或两者利润。只用了如果std等于"margins"的。


参数:space
the amount of space (as a fraction of the maximal radius of the quarter circles) used for the row and column labels.
行和列标签使用的空间量(四分之一圆的最大半径的一小部分)。


参数:main
character string for the fourfold title.
四倍标题字符串。


参数:mfrow
a numeric vector of the form c(nr, nc), indicating that the displays for the 2 by 2 tables should be arranged in an nr by nc layout, filled by rows.
的形式c(nr, nc)nrnc布局按行填写,应安排2表2显示,数字向量。


参数:mfcol
a numeric vector of the form c(nr, nc), indicating that the displays for the 2 by 2 tables should be arranged in an nr by nc layout, filled by columns.
的形式c(nr, nc)表明应安排nrnc布局,列充满2表2显示,数字向量。


Details

详情----------Details----------

The fourfold display is designed for the display of 2 by 2 by k tables.
k表2显示的四倍,显示设计2。

Following suitable standardization, the cell frequencies f[i,j] of each 2 by 2 table are shown as a quarter circle whose radius is proportional to sqrt(f[i,j]) so that its area is proportional to the cell frequency.  An association (odds ratio different from 1) between the binary row and column variables is indicated by the tendency of diagonally opposite cells in one direction to differ in size from those in the other direction; color is used to show this direction.  Confidence rings for the odds ratio allow a visual test of the null of no association; the rings for adjacent quadrants overlap if and only if the observed counts are consistent with the null hypothesis.
经过适当的标准化,单元频率f[i,j]每2 2表作为一个四分之一圆的半径成正比sqrt(f[i,j])所以,它的面积是成正比的单元频率。一个二进制的行和列变量之间的关联(胜算比从1)斜对面单元的倾向表示在一个方向,大小不同,在其他方向的颜色是用来显示这个方向。胜算比信心环让视觉测试一个无关联的空;相邻象限环重叠观测计数,当且仅当零假设是一致的。

Typically, the number k corresponds to the number of levels of a stratifying variable, and it is of interest to see whether the association is homogeneous across strata.  The fourfold display visualizes the pattern of association.  Note that the confidence rings for the individual odds ratios are not adjusted for multiple testing.
通常情况下,数字k对应级别的分层变量的数目,和它的兴趣是看是否会是跨阶层的同质。四倍,显示可视化关联模式。需要注意的是个人的胜算比信心环没有调整多个测试。


参考文献----------References----------

A fourfold display for 2 by 2 by <code>k</code> tables. Technical Report 217, York University, Psychology Department. http://www.math.yorku.ca/SCS/Papers/4fold/4fold.ps.gz

参见----------See Also----------

mosaicplot
mosaicplot


举例----------Examples----------


## Use the Berkeley admission data as in Friendly (1995).[在友好的(1995)#使用大学伯克利分校的录取数据。]
x <- aperm(UCBAdmissions, c(2, 1, 3))
dimnames(x)[[2]] <- c("Yes", "No")
names(dimnames(x)) <- c("Sex", "Admit?", "Department")
stats::ftable(x)

## Fourfold display of data aggregated over departments, with[#四重以上部门汇总的数据显示,]
## frequencies standardized to equate the margins for admission[#频率标准化等同于入学的边缘]
## and sex.[#和性别。]
## Figure 1 in Friendly (1994).[#在友好的图1(1994)。]
fourfoldplot(margin.table(x, c(1, 2)))

## Fourfold display of x, with frequencies in each table[#x的四重显示,在每个表的频率]
## standardized to equate the margins for admission and sex.[#标准化等同于入学和性别的边缘。]
## Figure 2 in Friendly (1994).[在友好的图2(1994年)。]
fourfoldplot(x)

## Fourfold display of x, with frequencies in each table[#x的四重显示,在每个表的频率]
## standardized to equate the margins for admission. but not[#标准化等同于入学的边缘。但不]
## for sex.[#性。]
## Figure 3 in Friendly (1994).[在友好的图3(1994年)。]
fourfoldplot(x, margin = 2)

转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。


注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|生物统计家园 网站价格

GMT+8, 2025-1-23 02:17 , Processed in 0.038092 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表