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

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

[复制链接]
发表于 2012-2-25 18:47:46 | 显示全部楼层 |阅读模式
ttest(genefilter)
ttest()所属R语言包:genefilter

                                        A filter function for a t.test
                                         一个为t.test过滤功能

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

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

ttest returns a function of one argument with bindings for cov and p. The function, when evaluated, performs a t-test using cov as the covariate. It returns TRUE if the p value for a difference in means is less than p.
ttestcov和p绑定返回一个参数的函数。评估时,执行的功能,t检验,使用cov作为协。它返回TRUE如果为手段的差异,p值比p少。


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


ttest(m, p=0.05, na.rm=TRUE)



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

参数:m
If m is of length one then it is assumed that elements one through m of x will be one group. Otherwise m is presumed to be the same length as x and constitutes the groups.
m如果长度为一则假定要素之一到mx将一组。“否则mx“构成的群体,被推定为相同的长度。


参数:p
The p-value for the test.  
p值的测试。


参数:na.rm
If set to TRUE any NA's will be removed.  
如果设置为TRUE任何NAs将被删除。


Details

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

When the data can be split into two groups (diseased and normal for example) then we often want to select genes on their ability to distinguish those two groups. The t-test is well suited to this and can be used as a filter function.
当数据可以分裂成两个组(病变和正常的,例如),然后我们往往要选择自己的能力来区分这两个群体的基因。 t检验是非常适合这种可以用来作为一个过滤器的功能。

This helper function creates a t-test (function) for the specified covariate and considers a gene to have passed the filter if the p-value for the gene is less than the prespecified p.
这个辅助函数创建指定的协t检验(功能),并认为一个基因已通过过滤器,如果基因p值超过预先设定的p。


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

ttest returns a function with bindings for m and p that will perform a t-test.
ttestm和p将执行t-检验绑定返回一个函数。


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


R. Gentleman



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

kOverA, Anova, t.test
kOverA,Anova,t.test


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


  dat <- c(rep(1,5),rep(2,5))
  set.seed(5)
  y <- rnorm(10)
  af <- ttest(dat, .01)
  af(y)
  af2 <- ttest(5, .01)
  af2(y)
  y[8] <- NA
  af(y)
  af2(y)
  y[1:5] <- y[1:5]+10
  af(y)

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-2-8 03:50 , Processed in 0.029588 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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