
simplex(lmu = "logit", lsigma = "loge", emu=list(), esigma=list(),
imu = NULL, isigma = NULL,
method.init = 1, shrinkage.init = 0.95, zero = 2)
mu
and sigma
.
See Links
for more choices.earg
in Links
for general information.mu
and sigma
.
A NULL
means a value is obtained internally.CommonVGAMffArguments
for more information."vglmff"
(see vglmff-class
).
The object is used by modelling functions such as vglm
,
and vgam
.mu
, and
returned as the fitted values). The second parameter, sigma
, of this standard simplex
distribution is known as the dispersion parameter.
The unit variance function is
$V(\mu) = \mu^3 (1-\mu)^3$.
Fisher scoring is applied to both parameters.
Song, P. X.-K. (2007) Correlated Data Analysis: Modeling, Analytics, and Applications. Springer.
dsimplex
,
dirichlet
,
rig
,
binomialff
.nn = 1000
sdata = data.frame(x = runif(nn))
sdata = transform(sdata, y = rsimplex(nn, mu = logit(1+2*x, inverse = TRUE),
dispersion = exp(1 - 2*x)))
(fit = vglm(y ~ x, simplex(zero = NULL), sdata, trace = TRUE))
coef(fit, matrix = TRUE)
summary(fit)
Run the code above in your browser using DataLab