spCdf(simPopulation)
spCdf()所属R语言包:simPopulation
(Weighted empirical) cumulative distribution function
(加权的经验)累计分布函数
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Compute a (weighted empirical) cumulative distribution function for survey or population data. For survey data, sample weights are taken into account.
计算(的加权经验)的累积分布函数为调查或人口数据。调查数据显示,样本权重考虑。
用法----------Usage----------
spCdf(x, weights = NULL, approx = FALSE, n = 10000)
参数----------Arguments----------
参数:x
a numeric vector.
一个数值向量。
参数:weights
an optional numeric vector containing sample weights.
一个可选的数字向量的样本权重。
参数:approx
a logical indicating whether an approximation of the cumulative distribution function should be computed.
一个逻辑指示是否应计算的累积分布函数的近似。
参数:n
a single integer value; if approx is TRUE, this specifies the number of points at which the approximation takes place (see approx).
一个整数值,如果approx是TRUE,指定点的数量近似的地方(见approx)。
Details
详细信息----------Details----------
Sample weights are taken into account by adjusting the step height. To be precise, the weighted step height for an observation is defined as its weight divided by the sum of all weights.
样本权重被考虑在内,通过调整的台阶高度。为了精确,加权步骤用于观察的高度被定义为它的重量的总和除以所有的重量.
If requested, the approximation is performed using the function approx.
如果有要求,近似使用的功能approx。
值----------Value----------
A list of class "spCdf" with the following components:
类"spCdf"以下组件的列表:
参数:x
a numeric vector containing the x-coordinates.
一个数字矢量包含x的坐标。
参数:y
a numeric vector containing the y-coordinates.
一个数字矢量包含y的坐标。
参数:approx
a logical indicating whether the coordinates represent an approximation.
逻辑指示是否坐标表示一个近似。
(作者)----------Author(s)----------
Andreas Alfons and Stefan Kraft
参见----------See Also----------
spCdfplot, ecdf, approx
spCdfplot,ecdf,approx
实例----------Examples----------
data(eusilcS)
cdfS <- spCdf(eusilcS$netIncome, weights = eusilcS$rb050)
plot(cdfS, type="s")
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|