tableWt(simPopulation)
tableWt()所属R语言包:simPopulation
Weighted cross tabulation
加权交叉制表
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Compute contingency tables taking into account sample weights.
考虑到样本权重计算列联表。
用法----------Usage----------
tableWt(x, weights = NULL, useNA = c("no", "ifany", "always"))
参数----------Arguments----------
参数:x
a vector that can be interpreted as a factor, or a matrix or data.frame whose columns can be interpreted as factors.
的向量,可以被解释为一个因素,或一个矩阵或data.frame的列可以被解释为因素。
参数:weights
an optional numeric vector containing sample weights.
一个可选的数字向量的样本权重。
参数:useNA
a logical indicating whether to include extra NA levels in the table.
逻辑指示是否包括额外的NA表中的水平。
Details
详细信息----------Details----------
For each combination of the variables in x, the weighted number of occurence is computed as the sum of the corresponding sample weights. If weights are not specified, the function table is applied.
在x的变量的每一种组合,加权计算的发生数为相应的样本权重的总和。如果没有指定权重的功能table。
值----------Value----------
The (weighted) contingency table as an object of class table, an array of integer values.
(加权)列联表类table,一个整数值数组的对象。
(作者)----------Author(s)----------
Andreas Alfons and Stefan Kraft
参见----------See Also----------
table, contingencyWt
table,contingencyWt
实例----------Examples----------
data(eusilcS)
tableWt(eusilcS[, c("hsize", "db040")], weights = eusilcS$rb050)
tableWt(eusilcS[, c("rb090", "pb220a")], weights = eusilcS$rb050,
useNA = "ifany")
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|