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

R语言 logicFS包 predict.logicBagg()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-2-25 23:34:50 | 显示全部楼层 |阅读模式
predict.logicBagg(logicFS)
predict.logicBagg()所属R语言包:logicFS

                                        Predict Method for logicBagg objects
                                         logicBagg对象预测方法

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

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

Prediction for test data using an object of class logicBagg.
使用类logicBagg对象的测试数据的预测。


用法----------Usage----------


## S3 method for class 'logicBagg'
predict(object, newData, prob.case = 0.5,
    type = c("class", "prob"), ...)



参数----------Arguments----------

参数:object
an object of class logicBagg.
对象类logicBagg。


参数:newData
a matrix or data frame containing new data. If omitted object\$data, i.e.\ the original training data, are used.  Each row of newData must correspond to a new observation. Each row of newData must contain the same variable as the corresponding column of the data matrix used in logic.bagging, i.e.\ x if the default method of logic.bagging has been used, or data without the column containing the response if the formula method has been used.
矩阵或数据框包含新的数据。如果省略object\$data,即\原始训练数据,使用。每个newData行必须对应到一个新的观察。每个newData行必须包含相同的变量数据矩阵的相应logic.bagging,即\x如果logic.bagging已使用的默认方法,用列或data没有列包含formula方法已用于响应。


参数:prob.case
a numeric value between 0 and 1. A new observation will be classified as case (or more exactly, as 1) if the class probability, i.e.\ the average of the predicted probabilities of the models (if the logistic regression approach of logic regression has been used), or the percentage of votes for class 1 (if the classification approach of logic regression has been used) is larger than prob.case. Ignored if type = "prob" or the response is quantitative.
0和1之间的数值。一个新的观察,将被列为情况(或者更确切地说,为1)如果类的概率,即\平均模型的预测概率(如逻辑回归Logistic回归方法已被用于),或百分比1类(如逻辑回归的分类方法已被用于)的票是比prob.case。如果type = "prob"或反应是定量忽略。


参数:type
character vector indicating the type of output. If "class", a numeric vector of zeros and ones containing the predicted classes of the observations (using the specification of prob.case) will be returned. If "prob", the class probabilities or percentages of votes for class 1, respectively, for all observations are returned. Ignored if the response is quantitative.
特征向量表示的输出类型。如果"class",将返回包含的意见,预测类(使用prob.case规格)0和1的数字向量。如果"prob",类概率或百分比为1级,分别投票,所有意见返回。被忽略,如果反应是定量。


参数:...
Ignored.
忽略。


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

A numeric vector containing the predicted classes (if type = "class") or the class probabilities (if type = "prob") of the new observations if the classification or the logistic regression approach of logic regression is used. If the response is quantitative, the predicted value of the response for all observations in the test data set is returned.
一个数字向量预测类(如果type = "class")或类的概率(如果type = "prob")新的观测结果,如果分类或逻辑回归Logistic回归方法的使用。如果反应是定量的预测值,在所有的测试数据集意见的回应返回。


作者(S)----------Author(s)----------


Holger Schwender, <a href="mailto:holger.schwender@udo.edu">holger.schwender@udo.edu</a>



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

logic.bagging
logic.bagging

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-2-4 19:49 , Processed in 0.036434 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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