checkMFClasses(stats)
checkMFClasses()所属R语言包:stats
Functions to Check the Type of Variables passed to Model Frames
检查变量的类型的功能,通过模型框架
译者:生物统计家园网 机器人LoveR
描述----------Description----------
.checkMFClasses checks if the variables used in a predict method agree in type with those used for fitting.
.checkMFClasses检查,如果在预测方法中使用的变量类型同意与装修使用。
.MFclass categorizes variables for this purpose.
.MFclass归类为这一目的的变量。
用法----------Usage----------
.checkMFClasses(cl, m, ordNotOK = FALSE)
.MFclass(x)
.getXlevels(Terms, m)
参数----------Arguments----------
参数:cl
a character vector of class descriptions to match.
一类描述的特征向量进行匹配。
参数:m
a model frame.
一个模型框架。
参数:x
any R object.
任何R对象。
参数:ordNotOK
logical: are ordered factors different?
逻辑:是有序的因素不同?
参数:Terms
a terms object.
terms对象。
Details
详情----------Details----------
For applications involving model.matrix such as linear models we do not need to differentiate between ordered factors and factors as although these affect the coding, the coding used in the fit is already recorded and imposed during prediction. However, other applications may treat ordered factors differently: rpart does, for example.
涉及应用model.matrix如线性模型,我们并不需要下令因素和因素之间的区分,尽管这些影响编码,在合适的编码已被记录,并在预测施加。然而,其他应用程序可能治疗下令因素不同:rpart,例如。
值----------Value----------
.MFclass returns a character string, one of "logical", "ordered", "factor", "numeric", "nmatrix.*" (a numeric matrix with a number of columns appended) or "other".
.MFclass返回一个字符串,一个"logical","ordered","factor","numeric","nmatrix.*"(一列数字矩阵附加)或"other"。
.getXlevels returns a named character vector, or NULL.
.getXlevels返回一个命名的特征向量,或NULL。
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|