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

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

[复制链接]
发表于 2012-2-25 20:58:17 | 显示全部楼层 |阅读模式
predict.gpls(gpls)
predict.gpls()所属R语言包:gpls

                                        A prediction method for gpls.
                                         一个GPLS预测方法。

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

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

A simple prediction method for gpls objects.
gpls对象的一个简单的预测方法。


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


## S3 method for class 'gpls'
predict(object, newdata, ...)



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

参数:object
A gpls object, typically obtained from a call to gpls   
一个gpls对象,通常从一个检测gpls


参数:newdata
New data, for which predictions are desired.  
新的数据,预测所需。


参数:...
Other arguments to be passed on
要通过对其他参数


Details

详情----------Details----------

The prediction method is straight forward. The estimated coefficients from object are used, together with the new data to produce predicted values. These are then split, according to whether the predicted values is larger or smaller than 0.5 and predictions returned.
该预测方法是直线前进。从object估计系数的使用,加上新的数据产生预测值。然后这些分裂,根据预测值是否是较大或较小的比0.5和预测返回。

The code is similar to that in glpls1a.train.test.error except that in that function both the test and train matrices are centered and scaled (the covariates) by the same values (those from the test data set).
该代码是类似的,在glpls1a.train.test.error除了该功能测试和火车矩阵为中心,由相同的值(从测试数据集),缩放(协变量)。


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

A list of length two:
一个list长度为二:


参数:class
The predicted classes; one for each row of newdata.
预测类;每个newdata行之一。


参数:predicted
The estimated predictors.
估计预测。


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


B. Ding and R. Gentleman



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

gpls
gpls


举例----------Examples----------


  example(gpls)
  p1 = predict(m1)

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-5-25 05:24 , Processed in 0.019435 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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