fisherz(VGAM)
fisherz()所属R语言包:VGAM
Fisher's Z Link Function
费舍尔的Z链接功能
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Computes the Fisher Z transformation, including its inverse and the first two derivatives.
计算了Z变换,包括逆和前两个衍生物。
用法----------Usage----------
fisherz(theta, earg = list(), inverse = 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 less than or equal to -1 can be replaced by the bminvalue component of the list earg before computing the link function value. Values of theta which are greater than or equal to 1 can be replaced by the bmaxvalue component of the list earg before computing the link function value. See Links for general information about earg.
可选列表。额外的信息传递额外的参数。 theta的值都小于或等于-1的bminvalue组件列表earg之前计算的链接函数值可以取代。 theta的值是大于或等于1bmaxvalue组件列表earg之前计算的链接函数值可以取代。见Links的一般信息,关于earg。
参数:inverse
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 fisherz link function is commonly used for parameters that lie between -1 and 1. Numerical values of theta close to -1 or 1 or out of range result in Inf, -Inf, NA or NaN. The arguments short and tag are used only if theta is character.
值----------Value----------
For deriv = 0, 0.5 * log((1+theta)/(1-theta)) when inverse = FALSE, and if inverse = TRUE then (exp(2*theta)-1)/(exp(2*theta)+1).
对于deriv = 0,0.5 * log((1+theta)/(1-theta))inverse = FALSE,并如果inverse = TRUE(exp(2*theta)-1)/(exp(2*theta)+1)的。
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.
对于deriv = 1,则该函数返回Dtheta / Deta的函数,theta如果inverse = FALSE如果inverse = TRUE然后它返回的倒数。
Here, all logarithms are natural logarithms, i.e., to base e.
在这里,所有对数的自然对数,即以e为底。
注意----------Note----------
Numerical instability may occur when theta is close to -1 or 1. One way of overcoming this is to use earg.
数值可能会出现不稳定时theta是-1或1。克服这一点的方法之一是使用earg。
The link function rhobit is very similar to fisherz, e.g., just twice the value of fisherz.
链接功能rhobit是非常相似fisherz的,例如,刚值的两倍fisherz。
(作者)----------Author(s)----------
Thomas W. Yee
参考文献----------References----------
Generalized Linear Models, 2nd ed. London: Chapman & Hall.
参见----------See Also----------
Links, rhobit, logit.
Links,rhobit,logit。
实例----------Examples----------
theta = seq(-0.99, 0.99, by=0.01)
y = fisherz(theta)
## Not run: [#不运行:]
plot(theta, y, type="l", las=1, ylab="", main="fisherz(theta)")
abline(v=0, h=0, lty=2)
## End(Not run)[#(不执行)]
x = c(seq(-1.02, -0.98, by=0.01), seq(0.97, 1.02, by=0.01))
fisherz(x) # Has NAs[有来港定居]
fisherz(x, earg=list(bminvalue= -1 + .Machine$double.eps,
bmaxvalue= 1 - .Machine$double.eps)) # Has no NAs[有没有来港定居]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|