maxsel.asymp.test(SNPmaxsel)
maxsel.asymp.test()所属R语言包:SNPmaxsel
Test of independence based on maximally selected statistics
独立性检验的基础上最大限度地选择统计
译者:生物统计家园网 机器人LoveR
描述----------Description----------
The function maxsel.test computes the probability that the maximally selected chi-square statistic is <= than the value observed from the data, under the null-hypothesis of no association between X and Y, given the proportions of observations with X=1,...,X=K. The candidate binary splits over which the chi-square statistic is maximized is specified by type. If x denotes the output of the function maxsel.asymp.test, 1-x may be seen as the p-value of an independence test.
的的功能maxsel.test计算概率的最大选择的卡方统计量是<=从数据中观察到的值,X和Y之间没有任何关联的零假设下,给出的观察与X = 1的比例,...,X = K候选人二进制分割在其指定的卡方统计量的最大化type。如果x表示的函数的输出maxsel.asymp.test,1-X可以看作一个独立的试验的p-值。
用法----------Usage----------
maxsel.asymp.test(x1,x2=NULL,y,type)
参数----------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”。
Details
详细信息----------Details----------
See Boulesteix et al (2007).
Boulesteix等人(2007年)。
值----------Value----------
<table summary="R valueblock"> <tr valign="top"><td>maxselstat</td> <td> the observed maximally selected statistic.</td></tr> <tr valign="top"><td>value</td> <td> the value of the distribution function of the maximally selected statistic at maxselstat.</td></tr> </table>
<table summary="R valueblock"> <tr valign="top"> <TD> maxselstat </ TD> <TD>观察到的最大选定统计数据。</ TD> </ TR> <TR VALIGN = “顶”> <TD> value </ TD> <TD>值的分布函数的最大选定统计数据maxselstat。</ TD> </ TR> </表>
(作者)----------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, Fasymp.
maxsel,Fasymp。
实例----------Examples----------
# load SNPmaxsel library[加载SNPmaxsel库]
# library(SNPmaxsel)[库(SNPmaxsel)]
x1<-sample(5,1000,replace=TRUE)
y<-sample(c(0,1),1000,replace=TRUE)
maxsel.asymp.test(x1=x1,y=y,type="ord")
maxsel.asymp.test(x1=x1,y=y,type="all.pairs")
maxsel.asymp.test(x1=x1,y=y,type="all.partitions")
x1<-sample(3,1000,replace=TRUE)
x2<-sample(3,1000,replace=TRUE)
maxsel.asymp.test(x1=x1,x2=x2,y=y,type="inter.ord")
maxsel.asymp.test(x1=x1,x2=x2,y=y,type="inter.cat")
maxsel.asymp.test(x1=x1,x2=x2,y=y,type="inter.ord.main")
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|