geometric(VGAM)
geometric()所属R语言包:VGAM
Geometric Distribution
几何分布
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Maximum likelihood estimation for the geometric distribution.
最大似然估计的几何分布。
用法----------Usage----------
geometric(link = "logit", earg = list(), expected = TRUE, imethod = 1,
iprob = NULL)
参数----------Arguments----------
参数:link, earg
Parameter link function and extra argument applied to the parameter prob, which lies in the unit interval. See Links for more choices, and earg in Links for general information.
参数链接功能和额外的参数的参数prob,这是在单位的时间间隔。见Links更多的选择,earg在Links的一般信息。
参数:expected
Logical. Fisher scoring is used if expected = TRUE, else Newton-Raphson.
逻辑。 Fisher评分时使用expected = TRUE,否则牛顿 - 拉夫逊。
参数:imethod
An integer with value 1 or 2 or 3 which specifies the initialization method for the probability. If failure to converge occurs try another value.
一个整数值1或2或3指定初始化方法的可能性。如果收敛失败时,尝试另一种价值。
参数:iprob
Optional initial value. See CommonVGAMffArguments for more details.
可选的初始值。见CommonVGAMffArguments更多详情。
Details
详细信息----------Details----------
A random variable Y has a 1-parameter geometric distribution if P(Y=y) = prob * (1-prob)^y for y=0,1,2,.... Here, prob is the probability of success, and Y is the number of (independent) trials that are fails until a success occurs. Thus the response Y should be a non-negative integer. The mean of Y is E(Y) = (1-prob)/prob and its variance is Var(Y) = (1-prob)/prob^2. The geometric distribution is a special case of the negative binomial distribution (see negbinomial). If Y has a geometric distribution with parameter prob then Y+1 has a positive-geometric distribution with the same parameter.
随机变量Y如果P(Y=y) = prob * (1-prob)^y的y=0,1,2,...有一个参数几何分布。在这里,prob是成功的概率,和Y是多少(独立的)试验失败,直到成功。因此,响应Y应该是一个非负的整数。 Y的平均E(Y) = (1-prob)/prob和方差为Var(Y) = (1-prob)/prob^2。几何分布是一个特殊的情况下,负二项分布(见negbinomial“)。如果Y具有几何分布参数prob然后Y+1有一个积极的几何分布具有相同的参数。
值----------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。
(作者)----------Author(s)----------
T. W. Yee
参考文献----------References----------
Statistical Distributions, New York: Wiley-Interscience, Third edition.
参见----------See Also----------
negbinomial, Geometric, betageometric, expgeometric, zageometric, zigeometric, rbetageom.
negbinomial,Geometric,betageometric,expgeometric,zageometric,zigeometric,rbetageom。
实例----------Examples----------
gdata = data.frame(x2 = runif(nn <- 1000) - 0.5)
gdata = transform(gdata, x3 = runif(nn) - 0.5,
x4 = runif(nn) - 0.5)
gdata = transform(gdata, eta = 1.0 - 1.0 * x2 + 2.0 * x3)
gdata = transform(gdata, prob = logit(eta, inverse = TRUE))
gdata = transform(gdata, y = rgeom(nn, prob))
with(gdata, table(y))
fit = vglm(y ~ x2 + x3 + x4, geometric, gdata, trace = TRUE)
coef(fit, matrix = TRUE)
summary(fit)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|