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

R语言 simba包 diffmean()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-9-30 02:28:53 | 显示全部楼层 |阅读模式
diffmean(simba)
diffmean()所属R语言包:simba

                                         Calculate the difference in Mean between two vectors
                                         计算两个向量之间的差异平均数

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

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

The function can be used to calculate the difference in mean between two vectors. Statistical inference is obtained through permutation. F-ratio is also calculated. For data which is not normally distributed or lacks independence. The plotting method plots the actual values of the difference in mean and F against an histogram of the results of the permuted runs.
该函数可以被用于计算两个向量之间的平均值的差异在。统计推断是通过排列。 F-比率也被计算。对于数据不是正态分布或缺乏独立性。绘图法绘制的实际值的差异,对置换后的运行结果的直方图的均值和F。


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


diffmean(x, y, permutations = 1000, ...)
## S3 method for class 'dmn'
plot(x, y, which=3, two=2, ...)



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

参数:x
Numeric vector. For the plotting method the dmn-object which should be printed (results from a diffmean operation). Plotting object in the plotting method.  
数字矢量。对于绘图方法的dmn对象应打印(从diffmean操作的结果)。绘制对象的绘图方法。


参数:y
Numeric vector. Plotting object in the plotting method, optional when x has appropriate structure
数字矢量。绘图对象的绘图方法,选购时x有适当的结构


参数:permutations
Number of permutations.  
的排列数目。


参数:which
which histogram should be plotted? 1 triggers the histogram for difference in mean, 2 the one for F. It defaults to 3: both histograms are plotted. If it is changed from default, the next argument (two) is automatically set to 1!  
应绘制的直方图? 1触发的直方图差异的意思是,一个用于F.,缺省值为3:两个直方图绘制。如果从默认值,下一个参数(two)被自动设置为1!


参数:two
Should the histograms be printed on a divided display? And how? Can only be set if which is set to 3. Defaults to 2, which means that the display is divided in two halfs and the histogram-plots are plotted side by side. 3 causes histograms to be plotted one on top of the other. If two = 1, the display is NOT automatically divided. Might be useful if more than one dmn-objekt is to be plotted on one display. Otherwise the function overrides the actual display settings.
如果印上一个分割显示直方图?怎么样?如果which设置为3,只可以设定。缺省值是2,这意味着显示被分成两个半区和直方图曲线绘制并排。 3原因直方图被绘制一个在另一个顶部上。如果two= 1,显示不是自动分割。可能是有用的,如果一个以上的dmn-OBJEKT是被绘制在一个显示。否则,函数覆盖了实际的显示设置。


参数:...
Further arguments to the plotting method or to function mean.  
进一步的参数绘图方法或函数mean。


Details

详细信息----------Details----------

The two vectors do not need to share the same length but they should not be too different. Otherwise the function might give spurious results.
这两个向量并不需要共享相同的长度,但它们不应该有太大差别。否则,函数可能得到可靠的结果。


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

Returns a list giving the function call, the difference in Mean, the mean of vector x and y, the mean of means, the F-value, the significance of the difference in Mean and the significance of F, as well as the number of permutations. The results of the permutation runs can be retrieved with result\$bootsM (for the difference in mean) and result\$bootF (for the F-values). There is a plot method for easily illustrating the test. The difference is plotted against an histogram displaying the distribution of the permuted values.
返回一个列表,给出的函数调用,差平均数,平均矢量x和y的平均值手段,F值,差平均数的意义和F的意义,以及数排列。置换的运行的结果,可以检索与result\$bootsM(均值差异)和result\$bootF(F值)。有一个图很容易地说明了测试的方法。所不同的是绘制对一个显示对置换后的值的分布的直方图。


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


Gerald Jurasinski



参见----------See Also----------

diffslope, diffmich
diffslope,diffmich


实例----------Examples----------



data(abis)

## create subsetting vector describing the belonging to different[#创建一个描述属于不同的子集向量]
## vegetationtypes[#vegetationtypes]
tcs.sub <- rep(0, 61)
tcs.sub[abis.env[,29]==1] <- 1
tcs.sub[abis.env[,30]==1] <- 2
tcs.sub[abis.env[,31]==1] <- 3

## check distribution[#检查分布]
summary(as.factor(tcs.sub))

## compare vegetation types "shrubby vegetation" (shrub=2) and[#植被类型进行比较,“灌木植被”(灌木= 2)]
## "protected by snowcover" (protect=3) regarding difference in [“保护积雪”(保护= 3)差异]
## similarities[#相似之处]
abis2.soer <- sim(abis.spec[tcs.sub==2,])
abis3.soer <- sim(abis.spec[tcs.sub==3,])
abis.23cmp <- diffmean(abis2.soer, abis3.soer)


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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-5-23 12:10 , Processed in 0.021253 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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