predict(stats)
predict()所属R语言包:stats
Model Predictions
模型预测
译者:生物统计家园网 机器人LoveR
描述----------Description----------
predict is a generic function for predictions from the results of various model fitting functions. The function invokes particular methods which depend on the class of the first argument.
predict是一个通用功能从各种模型的拟合函数的结果的预测。函数调用特定的方法,依赖于class的第一个参数。
用法----------Usage----------
predict (object, ...)
参数----------Arguments----------
参数:object
a model object for which prediction is desired.
预测所需的模型对象。
参数:...
additional arguments affecting the predictions produced.
额外的参数影响预测生产。
Details
详情----------Details----------
Most prediction methods which are similar to those for linear models have an argument newdata specifying the first place to look for explanatory variables to be used for prediction. Some considerable attempts are made to match up the columns in newdata to those used for fitting, for example that they are of comparable types and that any factors have the same level set in the same order (or can be transformed to be so).
最类似线性模型的预测方法有一个参数newdata指定的地方去寻找解释变量,用于预测。相当一些尝试匹配newdata装修使用的,例如,他们是比较类型,任何因素都在同一水平,在相同的顺序(或可转化为列左右)。
Time series prediction methods in package stats have an argument n.ahead specifying how many time steps ahead to predict.
在包的时间序列预测方法stats有一个参数n.ahead指定多少时间步骤提前预测。
Many methods have a logical argument se.fit saying if standard errors are to returned.
许多方法有逻辑参数se.fit说,如果标准错误是要返回。
值----------Value----------
The form of the value returned by predict depends on the class of its argument. See the documentation of the particular methods for details of what is produced by that method.
predict返回值的形式取决于它的参数类。看到文件的具体方法是由该方法生产的细节。
参考文献----------References----------
Statistical Models in S. Wadsworth & Brooks/Cole.
参见----------See Also----------
predict.glm, predict.lm, predict.loess, predict.nls, predict.poly, predict.princomp, predict.smooth.spline.
predict.glm,predict.lm,predict.loess,predict.nls,predict.poly,predict.princomp,predict.smooth.spline。
SafePrediction for prediction from polynomial and spline fits.
SafePrediction多项式样条拟合预测。
For time-series prediction, predict.ar, predict.Arima, predict.arima0, predict.HoltWinters, predict.StructTS.
对于时间序列预测,predict.ar,predict.Arima,predict.arima0,predict.HoltWinters,predict.StructTS。
举例----------Examples----------
require(utils)
## All the "predict" methods found[#所有的“预测”的方法]
## NB most of the methods in the standard packages are hidden.[#注:在标准封装的方法大部分是隐藏的。]
for(fn in methods("predict"))
try({
f <- eval(substitute(getAnywhere(fn)$objs[[1]], list(fn = fn)))
cat(fn, ":\n\t", deparse(args(f)), "\n")
}, silent = TRUE)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|