binormal(VGAM)
binormal()所属R语言包:VGAM
Bivariate normal distribution
二维正态分布
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Maximum likelihood estimation of the five parameters of a bivariate normal distribution.
二元正态分布的五个参数的极大似然估计。
用法----------Usage----------
binormal(lmean1 = "identity", emean1 = list(),
lmean2 = "identity", emean2 = list(),
lsd1 = "loge", esd1 = list(),
lsd2 = "loge", esd2 = list(),
lrho = "rhobit", erho = list(),
imean1 = NULL, imean2 = NULL,
isd1 = NULL, isd2 = NULL,
irho = NULL, imethod = 1,
equalmean = FALSE, equalsd = FALSE,
zero = 3:5)
参数----------Arguments----------
参数:lmean1, lmean2, lsd1, lsd2, lrho
Link functions applied to the means, standard deviations and rho parameters. See Links for more choices. Being positive quantities, a log link is the default for the standard deviations.
链接功能的均值,标准差和rho参数。见Links更多的选择。作为积极的数量,log链接是默认的标准差。
参数:emean1, emean2, esd1, esd2, erho
List. Extra argument for the links. See earg in Links for general information.
列表。额外的参数的链接。见earg中Links的一般信息。
参数:imean1, imean2, isd1, isd2, irho, imethod, zero
See CommonVGAMffArguments for more information.
见CommonVGAMffArguments更多信息。
参数:equalmean, equalsd
Logical or formula. Constrains the means or the standard deviations to be equal. Only one of these arguments may be assigned a value.
逻辑或公式。约束装置或标准偏差,是相等的。这些参数中只有一个可能被分配一个值。
Details
详细信息----------Details----------
For the bivariate normal distribution, this fits a linear model (LM) to the means, and by default, the other parameters are intercept-only. The response should be a two-column matrix. The correlation parameter is rho, which lies between -1 and 1 (thus the rhobit link is a reasonable choice). The fitted means are returned as the fitted values, which is in the form of a two-column matrix. Fisher scoring is implemented.
对于二元正态分布,符合线性模型(LM)的手段,和其他参数默认情况下,仅截距。响应应该是一个两列的矩阵。的相关参数是rho,它介于-1和1(rhobit链接是一个合理的选择)。拟合的装置,作为拟合的值,这是在一个两列的矩阵的形式返回。费舍尔得分的实施。
值----------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。
注意----------Note----------
If both equal means and equal standard deviations are desired then use something like constraints = list("(Intercept)" = matrix(c(1,1,0,0,0, 0,0,1,1,0 ,0,0,0,0,1), 5, 3)) and maybe zero = NULL etc.
如果两个平等的手段和平等的标准差都想要的,然后使用类似constraints = list("(Intercept)" = matrix(c(1,1,0,0,0, 0,0,1,1,0 ,0,0,0,0,1), 5, 3))也许zero = NULL等等。
(作者)----------Author(s)----------
T. W. Yee
参见----------See Also----------
normal1, gaussianff.
normal1,gaussianff。
实例----------Examples----------
nn <- 1000
mydat = data.frame(x2 = runif(nn), x3 = runif(nn))
mydat = transform(mydat, y1 = rnorm(nn, 1 + 2*x2),
y2 = rnorm(nn, 3 + 4*x2))
fit1 = vglm(cbind(y1, y2) ~ x2,
binormal(equalsd = TRUE), data = mydat, trace = TRUE)
coef(fit1, matrix = TRUE)
constraints(fit1)
summary(fit1)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|