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

R语言 VGAM包 vglmff-class()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-10-1 15:57:29 | 显示全部楼层 |阅读模式
vglmff-class(VGAM)
vglmff-class()所属R语言包:VGAM

                                        Class “vglmff”
                                         类“vglmff”

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

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

Family functions for the VGAM package
家庭功能VGAM包


类对象----------Objects from the Class----------

Objects can be created by calls of the form new("vglmff", ...).
可以创建对象通过调用的形式new("vglmff", ...)。


插槽----------Slots----------

In the following, M is the number of linear/additive predictors.
在下文中,M是线性/添加剂的预测变量的数目。

Object of class "character" giving a small description of the model. Important arguments such as parameter link functions can be expressed here.
类的对象"character"一个小的模型描述。重要的参数,如参数的链接功能,可以在这里表达。

Object of class "expression" which sets up any constraint matrices defined by arguments in the family function. A zero argument is always fed into cm.zero.vgam, whereas other constraints are fed into cm.vgam.
对象类"expression"设置任何约束矩阵的定义在家庭功能的参数。 Azero参数是总供给送入cm.zero.vgam到cm.vgam,而其他限制。

Object of class "function" returning the deviance of the model. This slot is optional. If present, the function must have arguments function(mu, y, w, residuals = FALSE, eta, extra = NULL). Deviance residuals are returned if residuals = TRUE.
类的对象"function"返回偏差的模型。这个插槽是可选的。如果存在,该函数必须有参数function(mu, y, w, residuals = FALSE, eta, extra = NULL)。如果residuals = TRUE返回越轨行为的残差。

Object of class "expression" to insert code at a special position in vglm.fit or vgam.fit. This code is evaluated immediately after the fitting.
对象类插入代码在一个特殊的位置在"expression"或vglm.fitvgam.fit。此代码进行评估后,立即配件。

Object of class "expression" to insert code at a special position in vglm or vgam.
对象类插入代码在一个特殊的位置在"expression"或vglmvgam。

Object of class "function" which returns a list with components such as Musual. At present only a very few VGAM family functions have this feature implemented. Those that do do not require specifying the Musual argument when used with rcam.
类的对象"function"返回一个列表,的组件如Musual。目前只有极少数的VGAM家庭功能实现此功能。那些不需要指定Musual使用时rcam参数。

Object of class "expression" used to perform error checking (especially for the variable y) and obtain starting values for the model. In general, etastart or mustart are assigned values based on the variables y, x and w.
类的对象"expression"用于执行错误检查(特别是对变量y),并获得该模型的初始值。在一般情况下,etastart或mustart分配的基础上的变量的值y,x和w。

Object of class "function" which returns the fitted values, given the linear/additive predictors. The function must have arguments function(eta, extra = NULL).
对象类"function"返回的拟合值,线性/对添加剂的预测。该函数必须有参数function(eta, extra = NULL)。

Object of class "expression" to insert code at a special position (at the very end) of vglm.fit or vgam.fit. This code is evaluated after the fitting. The list misc is often assigned components in this slot, which becomes the misc slot on the fitted object.
对象类插入代码在一个特殊的位置(在最后)"expression"或vglm.fitvgam.fit。此代码进行评估后的装修。的列表misc往往是在这个槽,成为misc插槽的拟合对象分配的组件。

Object of class "function" which, given the fitted values, returns the linear/additive predictors. If present, the function must have arguments function(mu, extra = NULL).
对象的类"function",给出的拟合值,返回线性/对添加剂的预测。如果存在,该函数必须有参数function(mu, extra = NULL)。

Object of class "function" returning the log-likelihood of the model. This slot is optional. If present, the function must have arguments function(mu, y, w, residuals = FALSE, eta, extra = NULL). The argument residuals can be ignored because log-likelihood residuals aren't defined.
类的对象"function"返回模型的对数似然。这个插槽是可选的。如果存在,该函数必须有参数function(mu, y, w, residuals = FALSE, eta, extra = NULL)。因为对数似然残留物中没有定义的参数residuals可以忽略不计。

Object of class "expression" to insert code at a special position in vglm.fit or vgam.fit.
对象类插入代码在一个特殊的位置在"expression"或vglm.fitvgam.fit。

Object of class "expression" to insert code at a special position in vglm.fit or vgam.fit.
对象类插入代码在一个特殊的位置在"expression"或vglm.fitvgam.fit。

Object of class "logical" indicating whether the general VGLM formula (based on a residual sum of squares) can be used for computing the scaling/dispersion parameter. It is TRUE for most models except for nonlinear regression models.
类的对象"logical"表示一般VGLM式(基础上的残差平方和)是否可用于计算缩放/分散参数。这是TRUE大部分机型除了非线性回归模型。

Object of class "character" giving class information about the family function. Although not developed at this stage, more flexible classes are planned in the future. For example, family functions sratio, cratio, cumulative, and acat all operate on categorical data, therefore will have a special class called "VGAMcat", say. Then if fit was a vglm object, then coef(fit) would print out the vglm coefficients plus "VGAMcat" information as well.
对象类"character"让家庭的功能类信息。虽然在此阶段没有开发,更灵活的类是计划在将来。例如,家庭功能sratio,cratio,cumulative和acat所有分类数据,因此将有一个特殊的类称为"VGAMcat"“说。然后,如果fit是vglm对象,然后coef(fit)将打印出来的vglm系数加上"VGAMcat"信息,以及。

Object of class "expression" which returns a M-column matrix of first derivatives of the log-likelihood function with respect to the linear/additive predictors, i.e., the score vector. In Yee and Wild (1996) this is the \bold{d}i vector. Thus each row of the matrix returned by this slot is such a vector.
线性/对添加剂的预测,即,将比分矢量对象的类"expression"返回一个M列矩阵的对数似然函数的一阶导数。中怡康和野生(1996年),这是\bold{d}i向量。因此,该插槽返回的每一行的矩阵是这样的向量。

Object of class "expression" which returns the second derivatives of the log-likelihood function with respect to the linear/additive predictors. This can be either the observed or expected information matrix, i.e., Newton-Raphson or Fisher-scoring respectively. In Yee and Wild (1996) this is the \bold{W}i matrix. Thus each row of the matrix returned by this slot is such a matrix. Like the weights slot of vglm/vgam, it is stored in  matrix-band form, whereby the first M  columns of the matrix are the diagonals, followed by the upper-diagonal band, followed by the band above that, etc. In this case, there can be up to M(M+1) columns, with the last column corresponding to the (1,M) elements of the weight matrices.
对象的类"expression"返回的数似然函数的二阶导数,线性/对添加剂的预测。这可以是所观察到的或预期的信息矩阵,即,Newton-Raphson法或Fisher得分。中怡康和野生(1996年),这是\bold{W}i矩阵。因此此插槽返回的矩阵的每一行是这样一个矩阵。喜欢weights插槽vglm/vgam,它被存储在矩阵带的形式,由此,第一M列的矩阵的对角线,然后由上部斜角带,然后由带上面的等在这种情况下,有可高达M(M+1)列,与最后一列相对应的(1,M)的权重矩阵元素。


方法----------Methods----------




print signature(x = "vglmff"): short summary of the family function.
打印signature(x = "vglmff"):简短的摘要,家庭的功能。


警告----------Warning ----------

VGAM family functions are not compatible with glm, nor gam (from either gam or mgcv packages).
“VGAM家庭功能不兼容glm,也不gam是gam或mgcv包。


注意----------Note----------

With link functions etc., one must use substitute to embed the options into the code. There are two different forms: eval(substitute(expression({...}), list(...))) for expressions, and eval(substitute( function(...) { ... }, list(...) ))  for functions.
链接等功能,必须使用substitute嵌入到代码的选项。有两种不同的形式:eval(substitute(expression({...}), list(...)))的表达式,并eval(substitute( function(...) { ... }, list(...) )) 的功能。

A unified method of handling arguments is to use match.arg. This allows, for example, vglm(..., family = cratio(link = logit)) and  vglm(..., family = cratio(link = "logi")) to be equivalent (Nb. there is a logit function).
一个统一的处理参数的方法是使用match.arg。这使得,例如,vglm(..., family = cratio(link = logit))和vglm(..., family = cratio(link = "logi"))是等价的(注意:有一个logit函数)。

The extra argument in linkinv, linkfun, deviance, loglikelihood, etc.  matches with the argument extra in vglm, vgam and rrvglm. This allows input to be fed into all slots of a VGAM family function.
extra参数在linkinv,linkfun,deviance,loglikelihood,等比赛的论点extravglm的, vgam和rrvglm。这允许输入将被馈送至一个VGAM家庭功能的所有插槽。

The expression derivative is evaluated immediately prior to weight, so there is provision for re-use of variables etc.  Programmers must be careful to choose variable names that do not interfere with vglm.fit, vgam.fit etc.
的表达derivative之前weight,所以有提供重复使用的变量等。程序员必须小心选择的变量名,不干扰vglm.fit,被评为 vgam.fit等等。

Programmers of VGAM family functions are encouraged to keep to previous conventions regarding the naming of arguments, e.g., link is the argument for parameter link functions, zero for allowing some of the linear/additive predictors to be an intercept term only, etc.
程序员的VGAM家庭功能,鼓励保持以往关于命名的参数,例如,link是参数的链接功能,参数,zero让一些线性/对添加剂的预测是截距项等

In general, Fisher-scoring is recommended over Newton-Raphson where tractable. Although usually slightly slower in convergence, the weight matrices from using the expected information are positive-definite over a larger parameter space.
在一般情况下,费舍尔得分,建议在牛顿 - 拉夫逊听话的。虽然平时稍微慢收敛,预期的信息使用权重矩阵是正定的,在一个较大的参数空间。


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


Thomas W. Yee



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

Vector generalized additive models. Journal of the Royal Statistical Society, Series B, Methodological, 58, 481–493.
information on how to write <code>VGAM</code> family functions. The file is amongst other <code>VGAM</code> PDF documentation.

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

vglm, vgam, rrvglm, rcam.
vglm,vgam,rrvglm,rcam。


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


cratio()
cratio(link = "cloglog")
cratio(link = cloglog, reverse = TRUE)

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-26 11:56 , Processed in 0.021482 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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