Build a matrix with all possible patterns given a number of groups where samples may belong to.
样本可能属于一个群体的数量给予一切可能的模式,建立一个矩阵。
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Creates a matrix indicating which groups are put together under each pattern. The number of possible patterns increases very fast as the number of groups increases. This function provides an easy way to compute all possible patterns. The output of this function is usually used for the patterns parameter of the lmFit function.
这组每个模式下创建一个矩阵。组数量增加的可能模式的数量增加非常快。此功能提供了一个简单的方法来计算所有可能的模式。 patternslmFit函数的参数通常用于此功能的输出。
用法----------Usage----------
buildPatterns(groups)
参数----------Arguments----------
参数:groups
Character containing the names of the groups at which samples may belong to. If the output of the function is going to be used in fitGG it must match the group levels specified in the groups parameter that will be given to fitGG.
字符包含在哪个样本可能属于该组的名称。如果输出的功能将被fitGG它必须匹配组groups参数指定的水平,将fitGG。