posbinomial(VGAM)
posbinomial()所属R语言包:VGAM
Positive Binomial Distribution Family Function
正二项分布家庭功能
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Fits a positive binomial distribution.
适合积极二项分布。
用法----------Usage----------
posbinomial(link = "logit", earg = list(),
mv = FALSE, parallel = FALSE, zero = NULL)
参数----------Arguments----------
参数:link, earg
Link function and its extra argument for the usual probability parameter. See CommonVGAMffArguments for more information.
通常的概率参数的链接功能和额外的参数。见CommonVGAMffArguments更多信息。
参数:mv, parallel, zero
See CommonVGAMffArguments for more information.
见CommonVGAMffArguments更多信息。
Details
详细信息----------Details----------
The positive binomial distribution is the ordinary binomial distribution but with the probability of zero being zero. Thus the other probabilities are scaled up (i.e., divided by 1-P(Y=0)). The fitted values are the ordinary binomial distribution fitted values, i.e., the usual mean.
阳性二项分布但与零是零的概率是普通的二项式分布。因此,概率比例(即,除以1-P(Y=0))。拟合值的普通二项式分布拟合值,即,通常的平均值。
值----------Value----------
An object of class "vglmff" (see vglmff-class). The object is used by modelling functions such as vglm, and vgam.
类的一个对象"vglmff"(见vglmff-class)。该对象被用于建模功能,如vglm,vgam。
警告----------Warning ----------
Under- or over-flow may occur if the data is ill-conditioned.
不足或过流时可能会出现的数据是病态的。
注意----------Note----------
The input for this family function is the same as binomialff.
输入对这个家庭的功能是一样binomialff。
If mv = TRUE then each column of the matrix response should be a count (the number of successes), and the weights argument should be a matrix of the same dimension as the response containing the number of trials. If mv = FALSE then the response input should be the same as binomialff.
如果mv = TRUE那么每一列矩阵响应应该是一个计数(成功的次数),和weights参数应该是一个含有试验的次数作为响应具有相同维数的矩阵。如果mv = FALSE然后输入响应应该是一样binomialff。
Yet to be done: a quasi.posbinomial which estimates a dispersion parameter.
然而,做一个quasi.posbinomial分散参数估计。
(作者)----------Author(s)----------
Thomas W. Yee
参考文献----------References----------
Maximum likelihood estimation for generalised power series distributions and its application to a truncated binomial distribution. Biometrika, 49, 227–237.
http://www.stat.auckland.ac.nz/~yee contains further information and examples.
参见----------See Also----------
binomialff.
binomialff。
实例----------Examples----------
# Number of albinotic children in families with 5 kids (from Patil, 1962)[albinotic儿童的家庭有5个孩子(从帕蒂尔,1962年)]
akids = data.frame(y = c(rep(1, 25), rep(2, 23), rep(3, 10), 4, 5),
n = rep(5, 60))
fit1 = vglm(cbind(y, n-y) ~ 1, posbinomial, akids, trace = TRUE)
summary(fit1)
Coef(fit1) # = MLE of p = 0.3088[= MLE的p = 0.3088]
head(fitted(fit1))
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|