setup.smart(VGAM)
setup.smart()所属R语言包:VGAM
Smart Prediction Setup
智能预报安装的
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Sets up smart prediction in one of two modes: "write" and "read".
智能预测在以下两种模式之一:"write"和"read"。
用法----------Usage----------
setup.smart(mode.arg, smart.prediction = NULL, max.smart = 30)
参数----------Arguments----------
参数:mode.arg
mode.arg must be "write" or "read". If in "read" mode then smart.prediction must be assigned the data structure .smart.prediction that was created while fitting. This is stored in object@smart.prediction or object$smart.prediction where object is the name of the fitted object.
mode.arg是"write"或"read"。如果"read"模式smart.prediction必须被分配的数据结构.smart.prediction,而装修。这是存储在object@smart.prediction或object$smart.predictionobject的拟合对象的名称。
参数:smart.prediction
If in "read" mode then smart.prediction must be assigned the list of data dependent parameters, which is stored on the fitted object. Otherwise, smart.prediction is ignored.
如果在"read"模式,那么smart.prediction必须被分配列表中的数据相关的参数,它存储的拟合对象。否则,smart.prediction被忽略。
参数:max.smart
max.smart is the initial length of the list .smart.prediction. It is not important because .smart.prediction is made larger if needed. </table>
max.smart是列表.smart.prediction的初始长度。这一点并不重要,因为.smart.prediction较大,如果需要的话。 </ TABLE>
Details
详细信息----------Details----------
This function is only required by programmers writing a modelling function such as lm and glm, or a prediction functions of such, e.g., predict.lm. The function setup.smart operates by mimicking the operations of a first-in first-out stack (better known as a queue).
此功能只需要编写一个建模的功能,如lm和glm,或预测功能,例如,例如,predict.lm。通过模仿操作的先入先出的堆栈(更好地了解作为一个队列)的功能setup.smart。
值----------Value----------
Nothing is returned.
不返回任何值。
副作用----------Side Effects----------
In "write" mode .smart.prediction in smartpredenv (R) or frame 1 (S-PLUS) is assigned an empty list with max.smart components. In "read" mode .smart.prediction in smartpredenv (R) or frame 1 (S-PLUS) is assigned smart.prediction. In both cases, .smart.prediction.counter in smartpredenv (R) or frame 1 (S-PLUS) is assigned the value 0, and .smart.prediction.mode and .max.smart are written to smartpredenv (R) or frame 1 (S-PLUS) too.
在"write"模式.smart.predictionsmartpredenv(R)或1帧(S-PLUS)被分配了一个空列表max.smart组件。在"read"模式.smart.prediction:smartpredenv(R)或1帧(S-PLUS)被分配smart.prediction。在这两种情况下,.smart.prediction.countersmartpredenv(R)或1帧(S-PLUS)被分配的值0,.smart.prediction.mode和.max.smart是写入<X (R)或1帧(S-PLUS)也。
参见----------See Also----------
lm, predict.lm.
lm,predict.lm。
实例----------Examples----------
## Not run: # Put at the beginning of lm[#不运行:#将开始流明]
setup.smart("write")
## End(Not run)[#(不执行)]
## Not run: # Put at the beginning of predict.lm[#不运行:#将开始predict.lm]
setup.smart("read", smart.prediction=object$smart.prediction)
## End(Not run)[#(不执行)]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|