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

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

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

                                        Predict Method for mlogreg Objects
                                         mlogreg对象预测方法

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

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

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


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


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



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

参数:object
an object of class mlogreg, i.e.\ the output of the function mlogreg.
一个类对象mlogreg,即\功能mlogreg的输出。


参数: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 mlogreg, i.e.\ x if the default method of mlogreg has been used, or data without the column containing the response if the formula method has been used.
矩阵或数据框包含新的数据。如果省略object\$data,即\原始训练数据,使用。每个newData行必须对应到一个新的观察。每个newData行必须包含相同的变量数据矩阵的相应mlogreg,即\x如果mlogreg已使用的默认方法,用列或data没有列包含formula方法已用于响应。


参数:type
character vector indicating the type of output. If "class", a vector containing the predicted classes of the observations will be returned.  If "prob", the class probabilities for each level and all observations are returned.
特征向量表示的输出类型。如果"class",将返回一个向量包含的意见,预测类。如果"prob",每个级别和所有观测类的概率返回。


参数:...
Ignored.
忽略。


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

A numeric vector containing the predicted classes (if type = "class"), or a matrix composed of the class probabilities (if type = "prob").
一个数值向量预测类(如type = "class"),或组成一个矩阵类的概率(如果type = "prob")。


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


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



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

mlogreg
mlogreg

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


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

使用道具 举报

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

本版积分规则

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

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

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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