找回密码
 注册
查看: 2343|回复: 0

R语言:rpart.object()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-2-16 19:08:40 | 显示全部楼层 |阅读模式
rpart.object(rpart)
rpart.object()所属R语言包:rpart

                                         Recursive Partitioning and Regression Trees Object
                                         递归分割和回归树对象

                                         译者:生物统计家园网 机器人LoveR

描述----------Description----------

These are objects representing fitted rpart trees.
这些对象代表安装rpart树木。


值----------Value----------


参数:frame
data frame with one row for each node in the tree. The row.names of frame contain the (unique) node numbers that follow a binary ordering indexed by node depth. Elements of frame include var, a factor giving the variable used in the split at each node (leaf nodes are denoted by the string <leaf>), n, the size of each node, wt, the sum of case weights for the node, dev, the deviance of each node, yval, the fitted value of the response at each node, and splits, a two column matrix of left and right split labels for each node. All of these are the same as for an rpart object.  Extra response information is in yval2, which contains the number of events at the node (poisson), or a matrix containing the fitted class, the class counts for each node and the class probabilities (classification).  Also included in the frame are complexity, the complexity parameter at which this split will collapse, ncompete, the number of competitor splits retained, and nsurrogate, the number of surrogate splits retained.  
一排树中的每个节点的数据框。 row.namesframe包含(唯一的)节点按照节点的深度排序索引的二进制数字。 frame元素包括var,分裂,<leaf>,大小在每个节点(叶节点表示字符串n)变量的一个因素,使每个节点,wt的情况下重量为节点的总和,dev,每个节点上的偏差,yval,装在每个节点的响应值,<X >,两列矩阵的每个节点的左边和右边的分割标签。所有这些都为splits对象相同。额外的响应信息是rpart,其中包含在节点(泊松分布),或含装类,每个节点和类概率(分类)类计数矩阵的事件数量。帧中包括yval2,复杂的参数,这将会崩溃分裂,complexity,竞争对手的数量分割保留,ncompete,保留代理的数量分割。


参数:where
integer vector, the same length as the number of observations in the root node,  containing the row number of frame corresponding to the leaf node  that each observation falls into.   
整数向量,长度,包含frame相应的行数,每个观测落入到叶节点作为根节点的意见相同。


参数:splits
a numeric matrix describing the splits.  The row label is the name of the split variable, and columns are count, the number of observations sent left or right by the split (for competitor splits this is the number that would have been sent left or right had this split been used, for surrogate splits it is the number missing the primary split variable which were decided using this surrogate), ncat, the number of categories or levels for the variable (+/-1 for a continuous variable), improve, which is the improvement in deviance given by this split, or, for surrogates, the concordance of the surrogate with the primary, and split, the numeric split point.   The last column adj gives the adjusted concordance for surrogate splits. For a factor, the split column contains the row number of the csplit matrix. For a continuous variable, the sign of ncat determines whether the subset x < cutpoint or x > cutpoint is sent to the left.  
数字矩阵描述的分裂。行标签是分割变量的名称,列count“若干意见发送向左或分割权(竞争对手分裂,这是将被送往左或右有这种分裂的数量被用来替代分裂,这是失踪人数决定使用这个代理主分割变量),ncat,类别或变量的水平(+/-1连续变量), improve,这是改善在这种分裂,或代理人,与主代理的一致性,和split,数字分割点的偏差。最后一列adj给分裂替代调整一致。 split列的一个因素,包含,csplit矩阵的行数。对于一个连续变量,标志ncat决定是否子集x < cutpoint或x > cutpoint发送到左侧。


参数:csplit
this will be present only if one of the split variables is a factor. There is one row for each such split, and column i = 1 if this level of the factor goes to the left, 3 if it goes to the right, and 2 if that level is not present at this node of the tree. For an ordered categorical variable all levels are marked as R/L,  including levels that are not present.  
这将是目前唯一的,如果分割变量之一是一个因素。有一个为每个这样的分裂行和列i = 1如果这一级别的因素去左,3如果它的权利,和2,如果在此节点目前的水平是不树。各级为有序分类变量被标记为R/L,包括水平,是不存在的。


参数:method
the method used to grow the tree.   
方法用于种植的树。


参数:cptable
the table of optimal prunings based on a complexity parameter.   
最佳剪枝表基础上的复杂性参数。


参数:terms
an object of mode expression and class term summarizing the formula.  Used by various methods, but typically not of direct relevance to users.   
模式expression“类的一个对象term总结公式。使用各种方法,但通常不直接关系到用户。


参数:call
an image of the call that produced the object, but with the arguments  all named and with the actual formula included as the formula argument.  To re-evaluate the call, say update(tree).   Optional components include the matrix of predictors (x) and the  response variable (y) used to construct the rpart object.   
调用产生的对象的形象,但包含所有命名的参数,并与实际的公式,该公式参数。重新评估的电话,说update(tree)。可选组件包括矩阵预测(x)和响应变量(y),用于兴建rpart对象。


结构----------Structure----------

The following components must be included in a legitimate rpart object.  Of these, only the where component has the same length as   the data used to fit the rpart object.
在一个合法的rpart对象,必须包含以下组件。这些,只有where组件的使用,以适应rpart对象的数据的长度相同。


参见----------See Also----------

rpart.
rpart。

转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。


注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|生物统计家园 网站价格

GMT+8, 2025-1-24 08:20 , Processed in 0.024693 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表