GenerateFoldMatrix(GeneSelector)
GenerateFoldMatrix()所属R语言包:GeneSelector
Altered datasets via k-Jackknife or label exchange
通过K-刀切或标签交换改变数据集
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Generates an object of class FoldMatrix to be used for RepeatRanking.
生成对象类FoldMatrix的使用RepeatRanking。
用法----------Usage----------
GenerateFoldMatrix(x, y, k = 1, replicates = ifelse(k==1, length(y), 10), type = c("unpaired", "paired", "onesample"), minclassize = 2, balanced = FALSE, control)
参数----------Arguments----------
参数:x
Only needed if y is stored within an ExpressionSet.
如果y内ExpressionSet的存储只需要。
参数:y
y may be a numeric vector or a factor with at most two levels.<br> If x is an ExpressionSet, then y is a character specifying the phenotype variable in the output from pData.<br> If type = "paired", take care that the coding is correct.
y可能是一个numeric矢量或在大多数两个级别的一个因素。<br>如果x是ExpressionSet,则y指定一个字符从pData。参考输出型的变量,如果type = "paired",照顾的编码是正确的。
参数:k
Number of observations that are removed or whose labels are exchanged. Label exchange means that the observed label is replaced by the label of the other class (s. RepeatRanking).
被删除或者其标签交换意见。标签交换是指所观察到的标签取代其他类的标签(S. RepeatRanking)。
参数:replicates
Number of replications if k>1.
如果k>1的重复数。
参数:type
One of "paired", "unpaired", "onesample", depends on the type of test to be performed, s. for example RankingTstat.
"paired", "unpaired", "onesample",取决于进行的测试类型。为例子RankingTstat。
参数:minclassize
If minclassize=k for some integer k, then the number of observations in each class are grater then or equal to minclassize for each replication.
如果minclassize=k一些整数k,然后观察每班人数都刨丝器,然后每个复制或等于minclassize。
参数:balanced
If balanced=TRUE, then the proportions of the two classes are (at least approximately) the same for each replication. It is a shortcut for a certain value of minclasssize. May not be reasonable if class proportions in the given dataset are unbalanced in the original sample.
如果balanced=TRUE,那么这两个类的比例(约)至少为每个复制相同。它是为一定值minclasssize快捷。未必是合理的,如果在给定的数据集类的比例不平衡的原始样本。
参数:control
Further control arguments concerning the generation process of the fold matrix, s. samplingcontrol.
进一步控制参数关于倍矩阵,S的生成过程。 samplingcontrol。
值----------Value----------
An object of class FoldMatrix.
一个类FoldMatrix对象。
警告----------warning----------
If the generation process (partially) fails, try to
如果失败的生成过程(部分),尝试
注意----------Note----------
No jackknif-ed dataset will occur more than once, i.e. each replication is unique.
没有jackknif编集将出现一次以上,即每个复制是独一无二的。
作者(S)----------Author(s)----------
Martin Slawski <br>
Anne-Laure Boulesteix
参考文献----------References----------
Bootstrap Methods and their Application.
参见----------See Also----------
GenerateBootMatrix, RepeatRanking
GenerateBootMatrix,RepeatRanking
举例----------Examples----------
## Load toy gene expression data[#加载玩具基因表达数据]
data(toydata)
### class labels[##类的标签]
yy <- toydata[1,]
### Generate Leave-One-Out / Exchange-One-Label matrix[#生成留一出/ Exchange的一个标签矩阵]
loo <- GenerateFoldMatrix(y = yy, k=1)
### A more complex example[更复杂的例子#]
l3o <- GenerateFoldMatrix(y = yy, k=3, replicates=30, minclassize=5)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|