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

R语言 genefu包 weighted.meanvar()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-2-25 18:53:50 | 显示全部楼层 |阅读模式
weighted.meanvar(genefu)
weighted.meanvar()所属R语言包:genefu

                                         Function to compute the weighted mean and weighted variance of 'x'
                                         函数来计算的加权平均加权方差和X

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

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

This function allows for computing the weighted mean and weighted variance of a vector of continuous values.
此功能允许计算的加权平均和加权连续值向量的方差。


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


weighted.meanvar(x, w, na.rm = FALSE)



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

参数:x
an object containing the values whose weighted mean is to be computed.  
包含一个对象,其加权平均计算的值。


参数:w
a numerical vector of weights of the same length as x giving the weights to use for elements of x.  
数值向量的长度相同的重量x使用x元素的重量。


参数:na.rm
TRUE if missing values should be removed, FALSE otherwise.  
TRUE如果缺失值应该被删除,FALSE否则。


Details

详情----------Details----------

If w is missing then all elements of x are given the same weight, otherwise the weights coerced to numeric by as.numeric. On the contrary of weighted.mean the weights are NOT normalized to sum to one. If the sum of the weights is zero or infinite, NAs will be returned.
如果w缺少那么所有元素x给出了同样的重量,否则被迫as.numeric到数字的权重。对违反weighted.mean重量不归一总结。如果权重的总和是零或无穷,NAS将被退回。


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

A numeric vector of two values that are the weighted mean and weighted variance respectively.
一个数字的两个值,加权平均和加权方差分别向量。


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



Benjamin Haibe-Kains




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

<h3>See Also</h3>   weighted.mean

举例----------Examples----------


set.seed(54321)
weighted.meanvar(x=rnorm(100) + 10, w=runif(100))

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-2-7 21:56 , Processed in 0.039860 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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