prep(pcaMethods)
prep()所属R语言包:pcaMethods
Pre-process a matrix for PCA
预处理矩阵的PCA
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Scaling and centering a matrix.
扩大和中心矩阵。
用法----------Usage----------
参数----------Arguments----------
参数:object
Numerical matrix (or an object coercible to such) with samples in rows and variables as columns. Also takes ExpressionSet in which case the transposed expression matrix is used.
行和列变量作为样本的数值矩阵(或对象强制转换等)。还需要ExpressionSet在这种情况下,用于换位表达矩阵。
参数:scale
One of "UV" (unit variance a=a/σ_{a}) "vector" (vector normalisation b=b/||b||), "pareto" (sqrt UV) or "none" to indicate which scaling should be used to scale the matrix with a variables and b samples. Can also be a vector of scales which should be used to scale the matrix. NULL value is interpreted as "none".
一个“防紫外线”(单位方差a=a/σ_{a})“向量”(矢量归b=b/||b||),“二八”(SQRT紫外线)或“无”表示缩放应使用扩展a变量和b样品的矩阵。也可以是一个尺度,它应该被用来缩放矩阵向量。 NULL值"none"解释。
参数:center
Either a logical which indicates if the matrix should be mean centred or not, or a vector with averages which should be suntracted from the matrix. NULL value is interpreted as FALSE
无论是逻辑,这表明如果矩阵应意味着中心或没有,或应矩阵suntracted平均向量。 NULL值FALSE解释
参数:eps
Minimum variance, variable with lower variance are not scaled and warning is issued instead.
最小方差,方差较低的变量不进行缩放,并发出警告,而不是。
参数:simple
Logical indicating if only the data should be returned or a list with the pre-processing statistics as well.
如果只有数据应退回或前处理统计列表以及逻辑表示。
参数:reverse
Logical indicating if matrix should be 'post-processed' instead by multiplying each column with its scale and adding the center. In this case, center and scale should be vectors with the statistics (no warning is issued if not, instead output becomes the same as input).
逻辑表示如果矩阵应该是“后处理”,而不是规模乘以每列加入该中心。在这种情况下,中心和规模应与统计(不会发出任何警告,如果不输出,而不是成为作为输入相同)的向量。
参数:...
Only used for passing through arguments. </table>
仅用于通过参数传递。 </ TABLE>
Details
详情----------Details----------
Does basically the same as scale but adds some alternative scaling options and functionality for treating
是否基本上为scale相同,但增加了一些替代的缩放选项和功能治疗
值----------Value----------
A pre-processed matrix or a list with
一个预处理矩阵或列表
参数:center
a vector with the estimated centers
估计中心向量
参数:scale
a vector with the estimated scales
估计尺度向量
参数:data
the pre (or post) processed data </table>
前(或后)处理后的数据</ TABLE>
作者(S)----------Author(s)----------
Henning Redestig
举例----------Examples----------
res <- prep(object, scale="uv", center=TRUE, simple=FALSE)
obj <- prep(object, scale=res$scale, center=res$center)
## same as original[#同样作为原始]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|