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

R语言 SNPmaxsel包 transf.inter()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-9-30 11:12:37 | 显示全部楼层 |阅读模式
transf.inter(SNPmaxsel)
transf.inter()所属R语言包:SNPmaxsel

                                        Transforms a pair of SNPs into a single variable with nine categories
                                         转换一对九类变量到一个单一的单核苷酸多态性

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

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

The function transf.inter creates a new variable with 9 categories out of a pair of variables with 3 categories (e.g. SNPs). The new variable is generated as described in Boulesteix et al (2007): =1 if x1=1 and x2=1, =2  if x1=2 and x2=1, =3 if x1=3 and x2=1, =4 if x1=1 and x2=2, =5 if x1=2 and x2=2, =6 if x1=3 and x2=2, =7 if x1=1 and x2=3, =8 if x1=2 and x2=3, =9 if x1=3 and x2=3.
函数transf.inter创建一个新的变量,9个类别,一对3个类别(如SNP)位点的变量。生成新的变量中所描述Boulesteix等人(2007):= 1如果x1 = 1和x2 = 1,= 2如果x1 = 2和x2 = 1,= 3如果x1 = 3和x2 = 1,= 4如果x1 = 1和x2 = 2,= 5×1 = 2和x2 = 2,= 6×1 = 3和x2 = 2,= 7×1 = 1和x2 = 3,= 8×1 = 2和X2 = 3,= 9如果x1 = 3和x2 = 3。


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


transf.inter(x1,x2)



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

参数:x1
a numeric vector of length n giving the first SNP, coded as 1,2,3.
一个数值向量长度为n给人的第一单核苷酸多态性,编码为1,2,3。


参数:x2
a numeric vector of length n giving the second SNP, coded as 1,2,3.
一个数值向量长度为n的给第二个SNP位点,编码为1,2,3。


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

a numeric vector of length n containing the new variable with 9 categories.
一个数值向量长度为n的包含9个类别的新变量。


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



Anne-Laure Boulesteix (<a href="http://www.ibe.med.uni-muenchen.de/organisation/mitarbeiter/020_professuren/boulesteix/index.html">http://www.ibe.med.uni-muenchen.de/organisation/mitarbeiter/020_professuren/boulesteix/index.html</a>)






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

Boulesteix AL, Strobl C, Weidinger S, Wichmann HE, Wagenpfeil S, 2007. Multiple testing for SNP-SNP interactions. Statistical Applications in Genetics and Molecular Biology 6:37.


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

maxsel,maxsel.asymp.test.
maxsel,maxsel.asymp.test。


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


# load SNPmaxsel library[加载SNPmaxsel库]
# library(SNPmaxsel)[库(SNPmaxsel)]

x1<-sample(3,100,replace=TRUE)
x2<-sample(3,100,replace=TRUE)

transf.inter(x1,x2)



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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-6-8 04:24 , Processed in 0.028200 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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