sample.centralmoments(sn)
sample.centralmoments()所属R语言包:sn
Sample centralmoments
样品centralmoments
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Computes sample central moments up to a given order and the first moment from the origin
计算样本矩从产地到一个给定的顺序和第一时刻
用法----------Usage----------
sample.centralmoments(x, w = rep(1, length(x)), order=4)
参数----------Arguments----------
参数:x
a vector of sample values
一个向量的采样值
参数:w
an optional vector of weights
可选的权重向量
参数:order
the maximal order of the central moments to be computed; it must be a positive integer (default value 4) </table>
最大的中心矩的计算,它必须是一个正整数(默认值为4)</ TABLE>
Details
详细信息----------Details----------
NA's are allowed but removed. Averaging of appropriate quantities is actually performed by weighted.mean
NAS是允许的,但删除。适当数量的平均值,实际上是进行weighted.mean
值----------Value----------
A vector containing the first sample central moments, in position [2 rder], and the first moment from the origin, in the first position of the returned vector
一种向量,含有第一样品中央的时刻,在位置[2 rder],和从原点的第一时刻,在第一位置时,返回的向量
注意----------Note----------
The second component of the returned vector (if order>1) gives the sample variance; notice that it differs from the value returned by var(x), since this gives the corrected sample variance.
返回的向量的第二个组成部分(如果order>1)为样本方差;通知,它的值不同,返回的var(x),因为这给了修正后的样本方差。
Used in conjunction with st.cumulants.inversion, this function allows to fit a skew-t distribution by the methods of moments; see the example below. Note however, that for stability reasons, this is not adopted as the standard method for producing initial values of MLE search.
与st.cumulants.inversion结合使用,此功能允许的方法,以适应歪斜-t分布的时刻,看下面的例子。但是,请注意,稳定的原因,这是不采用的标准方法生产的初始值,MLE的搜索。
(作者)----------Author(s)----------
Adelchi Azzalini
参见----------See Also----------
st.cumulants.inversion, weighted.mean
st.cumulants.inversion,weighted.mean
实例----------Examples----------
data(ais, package='sn')
mom <- sample.centralmoments(ais[,"bmi"])
st.cumulants.inversion(cum=c(mom[1:3], mom[4]-3*mom[2]^2))
# parameters of the fitted ST distribution[拟合ST分布参数]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|