poissonff(VGAM)
poissonff()所属R语言包:VGAM
Poisson Family Function
泊松家庭功能
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Family function for a generalized linear model fitted to Poisson responses. The dispersion parameters may be known or unknown.
家庭功能的广义线性模型拟合泊松反应。分散参数可能是已知或未知的。
用法----------Usage----------
poissonff(link = "loge", earg=list(), dispersion = 1, onedpar = FALSE,
imu = NULL, imethod = 1, parallel = FALSE, zero = NULL)
参数----------Arguments----------
参数:link, earg
Link function and extra argument applied to the mean or means. See Links for more choices and information.
链接功能和额外的参数的均值或手段。 Links更多的选择和信息。
参数:dispersion
Dispersion parameter. By default, maximum likelihood is used to estimate the model because it is known. However, the user can specify dispersion = 0 to have it estimated, or else specify a known positive value (or values if the response is a matrix—one value per column).
分散参数。缺省情况下,最大似然,因为它是已知的用于对模型进行估计。然而,用户可以指定dispersion = 0有它的估计,否则指定一个已知的正值(或值,如果该响应是一个矩阵每列的一个值)。
参数:onedpar
One dispersion parameter? If the response is a matrix, then a separate dispersion parameter will be computed for each response (column), by default. Setting onedpar=TRUE will pool them so that there is only one dispersion parameter to be estimated.
一个分散参数?如果响应是一个矩阵,然后将一个单独的分散体参数计算每个响应(列),默认情况下。设置onedpar=TRUE集中,所以只有一个分散参数进行估计。
参数:parallel
A logical or formula. Used only if the response is a matrix.
一个逻辑或公式。仅用于如果响应是一个矩阵。
参数:imu, imethod
See CommonVGAMffArguments for more information.
见CommonVGAMffArguments更多信息。
参数:zero
An integer-valued vector specifying which linear/additive predictors are modelled as intercepts only. The values must be from the set {1,2,...,M}, where M is the number of columns of the matrix response.
指定一个整数值向量线性/添加剂的预测模型仅作为拦截。这些值必须是从集合{1,2,...,M},其中M是数列的矩阵响应。
Details
详细信息----------Details----------
M defined above is the number of linear/additive predictors.
M上面定义的线性/添加剂预测变量的数目。
If the dispersion parameter is unknown, then the resulting estimate is not fully a maximum likelihood estimate.
如果分散参数是未知的,那么所得到的估计是不完全的最大似然估计。
A dispersion parameter that is less/greater than unity corresponds to under-/over-dispersion relative to the Poisson model. Over-dispersion is more common in practice.
一个的分散参数是小于/大于团结对应under-/over-dispersion相对于泊松模型。过度分散在实践中是比较常见的。
When fitting a Quadratic RR-VGLM (see cqo), the response is a matrix of M, say, columns (e.g., one column per species). Then there will be M dispersion parameters (one per column of the response matrix) if dispersion = 0 and onedpar = FALSE.
当安装一个二次RR-VGLM(见cqo),响应是一个矩阵的M,也就是说,列(例如,每个物种的一列)。然后会出现M分散参数(每列的响应矩阵)如果dispersion = 0和onedpar = FALSE。
值----------Value----------
An object of class "vglmff" (see vglmff-class). The object is used by modelling functions such as vglm, vgam, rrvglm, cqo, and cao.
类的一个对象"vglmff"(见vglmff-class)。该对象被用于建模功能,如vglm,vgam,rrvglm,cqo和cao。
警告----------Warning ----------
With a multivariate response, assigning a known dispersion parameter for each response is not handled well yet. Currently, only a single known dispersion parameter is handled well.
了一个多变量的响应,每个响应分配已知的分散的参数没有处理好。目前,只有一个已知的分散参数处理好了。
注意----------Note----------
This function will handle a matrix response automatically.
此功能将自动处理矩阵响应。
The call poissonff(dispersion=0, ...) is equivalent to quasipoissonff(...). The latter was written so that R users of quasipoisson() would only need to add a “ff” to the end of the family function name.
呼叫poissonff(dispersion=0, ...)是相当于quasipoissonff(...)。后者是使Rquasipoisson()用户只需要添加一个“ff”家庭的功能名称。
Regardless of whether the dispersion parameter is to be estimated or not, its value can be seen from the output from the summary() of the object.
无论是否分散参数是要估计或没有,可以看出,它的值从输出从summary()的对象。
(作者)----------Author(s)----------
Thomas W. Yee
参考文献----------References----------
Generalized Linear Models, 2nd ed. London: Chapman & Hall.
参见----------See Also----------
Links, quasipoissonff, genpoisson, zipoisson, skellam, mix2poisson, cenpoisson, ordpoisson, amlpoisson, invbinomial, loge, polf, rrvglm, cqo, cao, binomialff, quasibinomialff, poisson, poissonp.
Links,quasipoissonff,genpoisson,zipoisson,skellam,mix2poisson,cenpoisson,ordpoisson,amlpoisson,invbinomial,loge,polf,rrvglm,cqo,cao,binomialff,quasibinomialff ,poisson,poissonp。
实例----------Examples----------
poissonff()
pdat = data.frame(x = rnorm(nn <- 100))
pdat = transform(pdat, y = rpois(nn, exp(1+x)))
(fit = vglm(y ~ x, family = poissonff, pdat))
coef(fit, matrix = TRUE)
nn = 200
cdat = data.frame(x2 = rnorm(nn), x3 = rnorm(nn), x4 = rnorm(nn))
cdat = transform(cdat, lv1 = 0 + x3 - 2*x4)
cdat = transform(cdat, lambda1 = exp(3 - 0.5 * (lv1-0)^2),
lambda2 = exp(2 - 0.5 * (lv1-1)^2),
lambda3 = exp(2 - 0.5 * ((lv1+4)/2)^2))
cdat = transform(cdat, y1 = rpois(nn, lambda1),
y2 = rpois(nn, lambda2),
y3 = rpois(nn, lambda3))
# vvv p1 = cqo(cbind(y1,y2,y3) ~ x2 + x3 + x4, poissonff, cdat,[VVV p1的= cqo(CBIND体(y1,Y2,Y3)2倍+×3 + x4的,poissonff,CDAT]
# vvv EqualTol = FALSE, ITol = FALSE)[和VVV EqualTol = FALSE,ITol = FALSE)]
# vvv summary(p1) # # Three dispersion parameters are all unity[VVV摘要(P1)##分散参数都是统一]
## Not run: lvplot(p1, y = TRUE, lcol = 2:4, pch = 2:4, pcol = 2:4, rug = FALSE) [#不运行:lvplot(P1,Y = TRUE,LCOL = 2:4,PCH = 2:4,PCOL = 2:4,地毯= FALSE)]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|