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

R语言 scrime包 computeContCells()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-9-29 23:01:57 | 显示全部楼层 |阅读模式
computeContCells(scrime)
computeContCells()所属R语言包:scrime

                                        Pairwise Contingency Tables
                                         两两列联表

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

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

Computes a contingency table for each pair of rows of a matrix, and stores all contigency table in a matrix.
计算一个为每个对一个矩阵的行的列联表,并存储在一个矩阵的所有contigency表。


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


computeContCells(data, computeExp = TRUE, justDiag = FALSE,
   check = TRUE, n.cat = NULL)



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

参数:data
a numeric matrix consisting of integers between 1 and n.cat.  It is assumed that each row of these matrix represents a variable. Missing values and different numbers of categories a variable can take are allowed.
一个数字矩阵之间的整数1和n.cat。据推测,这些矩阵的每一行代表一个变量。缺失值和分类变量可以采取不同的检测号码,是允许的。


参数:computeExp
should the numbers of observations expected under the null hypothesis that the respective two variables are independent also be computed? Required when computeContCells is used to compute Pearson's ChiSquare-statistic.
应的数目的零假设下,相应的两个变量是独立的预期的观测也可以计算?需要时computeContCells是用来计算Pearson的ChiSquare的统计。


参数:justDiag
should only the diagonal elements of the contingency tables, i.e.\ n.ii, i = 1, …, n.cat, be computed?
应该只列联表的对角元素,即\n.ii,i = 1, …,n.cat,可以计算吗?


参数:check
should data be checked more thoroughly? It is highly recommended to use check = TRUE.
data检查更彻底呢?我们强烈建议使用check = TRUE。


参数:n.cat
integer specifying the maximum number of levels a variable can take. If NULL, this number will be computed. It is highly recommended not to change the default.
整数,指定一个变量可以采取的最大数量的水平。如果NULL,这个数字将被计算。我们强烈建议不要更改默认的。


值----------Value----------

A list consisting of two matrices each consisting of m * (m - 1) / 2 rows and  n.cat^2 columns, where m is the number of rows of data.  One of these matrices called mat.obs contains in each row the values of the contingency table for a particular pair of rows of data, where the contigency table of the variables represented by the ith and jth row of data is shown in the j + m * (i - 1) - i * (i - 1) / 2 row of mat.obs. The other matrix called mat.exp consists of the corresponding numbers of observations expected under the null hypothesis that the respective two variables are independent.
组成的列表中的各两个矩阵组成的m * (m - 1) / 2行和n.cat  ^2列,其中m是data的数量的行。这些矩阵之一称为mat.obs包含在每一行的值的应变表针对特定行的对datacontigency,其中表中的变量表示的第i个和第j行dataj + m * (i - 1) - i * (i - 1) / 2行mat.obs。其他矩阵名为mat.exp的由相应的数字预计的零假设下,相应的两个变量是独立的观察。


(作者)----------Author(s)----------


Holger Schwender, <a href="mailto:holger.schwender@udo.edu">holger.schwender@udo.edu</a>



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

Schwender, H.\ (2007). A Note on the Simultaneous Computation of Thousands of  Pearson's <code>ChiSquare</code>-Statistics. Technical Report, SFB 475, Deparment of Statistics, University of Dortmund.

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

computeContClass, rowChisqStats
computeContClass,rowChisqStats


实例----------Examples----------


# Generate an example data set consisting of 5 rows (variables)[生成的示例数据集,包括5行(变量)]
# and 200 columns (observations) by randomly drawing integers [列和200列(观察)随机抽取整数]
# between 1 and 3.[在1和3之间。]

mat <- matrix(sample(3, 1000, TRUE), 5)

# Generate the matrix containing the contingency tables for each[生成矩阵的列联表为每个]
# pair of rows of mat.[对垫子的行。]

out <- computeContCells(mat)

# out contains both the observed numbers of observations [满分包含同时观测到的观测数]
# summarized by contingency tables[总结通过列联表]

out$mat.obs

# and the number of observations expected under the null hypothesis[和预期的零假设下的若干意见]
# of independence.[的独立性。]

out$mat.exp

# If, e.g., only the observed number of observations having the same [如果,例如,仅观察到的具有相同数目的观察]
# value is of interest, call[值有兴趣,]

computeContCells(mat, computeExp = FALSE, justDiag = TRUE)



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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-29 20:58 , Processed in 0.024469 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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