prepare(VIM)
prepare()所属R语言包:VIM
Transformation and standardization
转型与标准化
译者:生物统计家园网 机器人LoveR
描述----------Description----------
This function is used by the VIM GUI for transformation and standardization of the data.
VIMGUI改造和标准化的数据使用此功能。
用法----------Usage----------
prepare(x, scaling = c("none","classical","MCD","robust","onestep"),
transformation = c("none","minus","reciprocal","logarithm",
"exponential","boxcox","clr","ilr","alr"), alpha = NULL,
powers = NULL, start = 0, alrVar)
参数----------Arguments----------
参数:x
a vector, matrix or data.frame.
一个向量,矩阵或data.frame。
参数:scaling
the scaling to be applied to the data. Possible values are "none", "classical", MCD, "robust" and "onestep".
要施加到数据的缩放。可能的值有"none","classical",MCD,"robust"和"onestep"。
参数:transformation
the transformation of the data. Possible values are "none", "minus", "reciprocal", "logarithm", "exponential", "boxcox", "clr", "ilr" and "alr".
的数据的转换。可能的值是"none","minus","reciprocal","logarithm","exponential","boxcox","clr","ilr"和"alr"。
参数:alpha
a numeric parameter controlling the size of the subset for the MCD (if scaling="MCD"). See covMcd.
一个数值参数控制为MCD的子集的大小(如scaling="MCD")。见covMcd。
参数:powers
a numeric vector giving the powers to be used in the Box-Cox transformation (if transformation="boxcox"). If NULL, the powers are calculated with function box.cox.powers.
一个数值向量中要使用Box-Cox转换(赋予的权力:如果transformation="boxcox")。如果NULL,权力计算与功能box.cox.powers中。
参数:start
a constant to be added prior to Box-Cox transformation (if transformation="boxcox").
之前添加一个常量,Box-Cox转换(如果transformation="boxcox"“)。
参数:alrVar
variable to be used as denominator in the additive logratio transformation (if transformation="alr").
变量被用作分母中的添加剂log比值变换(如果transformation="alr")。
Details
详细信息----------Details----------
Transformation:
转型:
"none": no transformation is used.
"none":不使用转换。
"logarithm": compute the the logarithm (to the base 10).
"logarithm":计算出的对数(基座10)。
"boxcox": apply a Box-Cox transformation. Powers may be specified or calculated with the function box.cox.powers.
"boxcox":应用Box-Cox转换。权力可以被指定或计算的功能box.cox.powers。
Standardization:
标准化:
"none": no standardization is used.
"none":没有标准化。
"classical": apply a z-Transformation on each variable by using function scale.
"classical":应用Z变换每个变量使用功能scale。
"robust": apply a robustified z-Transformation by using median and MAD.
"robust":应用抗差的Z变换,用中位数和MAD。
值----------Value----------
Transformed and standardized data.
转化和标准化的数据。
(作者)----------Author(s)----------
Matthias Templ, modifications by Andreas Alfons
参见----------See Also----------
scale, box.cox.powers
scale,box.cox.powers
实例----------Examples----------
data(sleep, package = "VIM")
x <- sleep[, c("BodyWgt", "BrainWgt")]
prepare(x, scaling = "robust", transformation = "logarithm")
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|