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

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

[复制链接]
发表于 2012-9-30 00:39:48 | 显示全部楼层 |阅读模式
predict.spm(SemiPar)
predict.spm()所属R语言包:SemiPar

                                        Semiparametric regression prediction.
                                         半参数回归预测。

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

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

Takes a fitted spm object produced by
注意到一个装有spm对象所产生的


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


## S3 method for class 'spm':
predict(object,newdata,se,...)



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

参数:object
a fitted spm object as produced by spm().
一个装有spm对象产生的spm()。


参数:newdata
a data frame containing the values of the predictors at which predictions are required. The columns should have the same name as the predictors.
的数据框包含的值需要在该预测的预测因子。列应具有相同的名称的预测。


参数:se
when this is TRUE standard error estimates are returned for each prediction. The default is FALSE.
这是TRUE时,返回的标准误差估计每个预测。默认值是FALSE。


参数:...
other arguments.
其他参数。


Details

详细信息----------Details----------

Takes a fitted spm object produced by  spm() and obtains predictions at new data values as specified by the "newdata" argument. If "se=TRUE" then
注意到一个装有spm对象产生的spm()和新的数据得到的预测值所指定的“newdata”的说法。如果本身= TRUE


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

If se=FALSE then a vector of predictions at "newdata" is returned. If se=TRUE then a list with components named "fit" and "se" is returned. The "fit" component contains the predictions.
如果本身= FALSE“newdata”的预测,矢量返回。如果本身= TRUE,那么一个名为“适应”和“SE”的组件列表返回。 “适合”组件包含了预测。


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


M.P. Wand
<a href="mailto:mwand@uow.edu.au">mwand@uow.edu.au</a>
(other contributors listed in SemiPar Users' Manual).



参考文献----------References----------

Ruppert, D., Wand, M.P. and Carroll, R.J. (2003)<br> Semiparametric Regression Cambridge University Press.<br> http://stat.tamu.edu/~carroll/semiregbook/

Ganguli, B. and Wand, M.P. (2005)<br> SemiPar 1.0 Users' Manual.<br> http://www.uow.edu.au/~mwand/SPmanu.pdf

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

spm lines.spm plot.spm summary.spm
spmlines.spmplot.spmsummary.spm


实例----------Examples----------


library(SemiPar)
data(fossil)
attach(fossil)
fit <- spm(strontium.ratio~f(age))
newdata.age <- data.frame(age=c(90,100,110,120,130))
preds <-  predict(fit,newdata=newdata.age,se=TRUE)
print(preds)

plot(fit,xlim=c(90,130))
points(unlist(newdata.age),preds$fit,col="red")
points(unlist(newdata.age),preds$fit+2*preds$se,col="blue")
points(unlist(newdata.age),preds$fit-2*preds$se,col="green")

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-5-18 18:45 , Processed in 0.023505 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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