reciprocal(VGAM)
reciprocal()所属R语言包:VGAM
Reciprocal link function
交换链接功能
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Computes the reciprocal transformation, including its inverse and the first two derivatives.
计算相互转化,包括逆和前两个衍生物。
用法----------Usage----------
reciprocal(theta, earg = list(), inverse.arg = FALSE, deriv = 0,
short = TRUE, tag = FALSE)
nreciprocal(theta, earg = list(), inverse.arg = FALSE, deriv = 0,
short = TRUE, tag = FALSE)
参数----------Arguments----------
参数:theta
Numeric or character. See below for further details.
数字或字符。请参阅下面进一步的细节。
参数:earg
Optional list. Extra argument for passing in additional information. Values of theta which are equal to 0 can be replaced by the bvalue component of the list earg before computing the link function value. The component name bvalue stands for “boundary value”. See Links for general information about earg.
可选列表。额外的信息传递额外的参数。 theta等于0的值,可以由bvalue组件的列表替换earg计算链接函数值之前。组件名称bvalue的意思是“边界值”。见Links的一般信息,关于earg。
参数:inverse.arg
Logical. If TRUE the inverse function is computed
逻辑。如果TRUE的逆函数计算
参数:deriv
Order of the derivative. Integer with value 0, 1 or 2.
订购的衍生工具。值0,1或2的整数,带。
参数:short
Used for labelling the blurb slot of a vglmff-class object.
用于标签blurb插槽的vglmff-class对象。
参数:tag
Used for labelling the linear/additive predictor in the initialize slot of a vglmff-class object. Contains a little more information if TRUE.
用于标注线性/对添加剂的预测在initialize插槽的vglmff-class对象。如果TRUE包含了一些信息。
Details
详细信息----------Details----------
The reciprocal link function is a special case of the power link function. Numerical values of theta close to 0 result in Inf, -Inf, NA or NaN. The arguments short and tag are used only if theta is character.
reciprocal链接功能是一种特殊的情况下,电源连接功能。数值theta接近0的结果Inf,-Inf,NA或NaN。的参数short和tag只有theta是字符。
The nreciprocal link function computes the negative reciprocal, i.e., -1/theta.
nreciprocal链接函数计算的负倒数,即,-1/theta。
值----------Value----------
For reciprocal: for deriv = 0, the reciprocal of theta, i.e., 1/theta when inverse = FALSE, and if inverse = TRUE then 1/theta. For deriv = 1, then the function returns d theta / d eta as a function of theta if inverse = FALSE, else if inverse = TRUE then it returns the reciprocal.
对于reciprocal:为deriv = 0,theta,即倒数,1/thetainverse = FALSE,而如果inverse = TRUE然后1/theta 。对于deriv = 1,则该函数返回Dtheta / Deta的函数,theta如果inverse = FALSE如果inverse = TRUE然后它返回的倒数。
注意----------Note----------
Numerical instability may occur when theta is close to 0.
数值不稳定时可能会出现theta接近0。
(作者)----------Author(s)----------
Thomas W. Yee
参考文献----------References----------
Generalized Linear Models, 2nd ed. London: Chapman & Hall.
参见----------See Also----------
identity, powl.
identity,powl。
实例----------Examples----------
reciprocal(1:5)
reciprocal(1:5, inverse=TRUE, deriv=2)
nreciprocal(1:5)
nreciprocal(1:5, inverse=TRUE, deriv=2)
x = (-3):3
reciprocal(x) # Has Inf[有Inf文件]
reciprocal(x, earg=list(bvalue= .Machine$double.eps)) # Has no Inf[有没有INF]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|