quantileWt(simPopulation)
quantileWt()所属R语言包:simPopulation
Weighted sample quantiles
加权样本位数
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Compute quantiles taking into account sample weights.
考虑到样本权重计算位数。
用法----------Usage----------
quantileWt(x, weights = NULL, probs = seq(0, 1, 0.25), na.rm = TRUE)
参数----------Arguments----------
参数:x
a numeric vector.
一个数值向量。
参数:weights
an optional numeric vector containing sample weights.
一个可选的数字向量的样本权重。
参数:probs
a numeric vector of probabilities with values in [0, 1].
一个数字的概率向量的值在[0, 1]。
参数:na.rm
a logical indicating whether any NA or NaN values should be removed from x before the quantiles are computed. Note that the default is TRUE, contrary to the function quantile.
一个逻辑说明是否有任何NA或NaNx前的位数计算值应删除。请注意,默认情况下是TRUE,相反的功能quantile。
Details
详细信息----------Details----------
If weights are not specified then quantile(x, probs, na.rm=na.rm, names=FALSE, type=1) is used for the computation.
如果权重没有指定,那么quantile(x, probs, na.rm=na.rm, names=FALSE, type=1)被用于计算。
Note probabilities outside [0, 1] cause an error.
注意外[0, 1]导致错误的概率。
值----------Value----------
A vector of the (weighted) sample quantiles.
一个向量(加权)采样位数。
(作者)----------Author(s)----------
Stefan Kraft
A basic version of this function was provided by Cedric Beguin and Beat
Hulliger.
参见----------See Also----------
quantile
quantile
实例----------Examples----------
data(eusilcS)
quantileWt(eusilcS$netIncome, weights=eusilcS$rb050)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|