maxsel(SNPmaxsel)
maxsel()所属R语言包:SNPmaxsel
Computes maximally selected chi-square statistics
计算最大限度选择的卡方统计
译者:生物统计家园网 机器人LoveR
描述----------Description----------
The function maxsel computes the maximal chi-square statistic over some candidate binary splits specified by type.
的的功能maxsel计算的最大的卡方统计对一些候选人二进制分割指定的type。
用法----------Usage----------
maxsel(x1,x2=NULL,y,type="inter.ord")
参数----------Arguments----------
参数:x1
a numeric vector of length n giving the values of the variable x1 for the considered n observations. The classes must be coded as 1,...,K.
一个数值向量长度为n的值的变量x1所考虑的n个观察。类必须被编码为1,...,K。
参数:x2
a numeric vector of length n giving the values of the variable x2 for the considered n observations. x2 should be NULL (default) for all types other than "inter.ord", "inter.cat" and "inter.ord.main". Since interactions are implemented for K=3 only (SNPs), x2 must be coded as 1,2,3.
一个数值向量长度为n的值的变量x2所考虑的n个观察。 x2应该是NULL(默认)所有其他类型不是"inter.ord","inter.cat"和"inter.ord.main"。由于相互作用来实现的K = 3(SNP)位点,x2必须被编码为1,2,3。
参数:y
a numeric vector of length n giving the class (response variable Y) of the considered n observations. The classes must be coded as 0 and 1.
一个数值向量长度为n的给类(响应变量Y)所考虑的n个观察。类必须被编码为0和1。
参数:type
must be one of "ordinal", "all.pairs", "all.partitions", "inter.ord", "inter.cat","inter.ord.main".
必须是一个“序号”,“all.pairs”中,“all.partitions”中,“inter.ord”中,“inter.cat”,“inter.ord.main”。
值----------Value----------
the value of the maximally selected chi-square statistic.
值的卡方统计的最大选择。
(作者)----------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.asymp.test, Fasymp.
maxsel.asymp.test,Fasymp。
实例----------Examples----------
# load SNPmaxsel library[加载SNPmaxsel库]
# library(SNPmaxsel)[库(SNPmaxsel)]
x1<-sample(5,1000,replace=TRUE)
y<-sample(c(0,1),1000,replace=TRUE)
maxsel(x1=x1,y=y,type="ord")
maxsel(x1=x1,y=y,type="all.pairs")
maxsel(x1=x1,y=y,type="all.partitions")
x1<-sample(3,1000,replace=TRUE)
x2<-sample(3,1000,replace=TRUE)
maxsel(x1=x1,x2=x2,y=y,type="inter.ord")
maxsel(x1=x1,x2=x2,y=y,type="inter.cat")
maxsel(x1=x1,x2=x2,y=y,type="inter.ord.main")
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|