Last chance! 50% off unlimited learning
Sale ends in
The two parameters of the univariate standard simplex distribution are estimated by full maximum likelihood estimation.
simplex(lmu = "logitlink", lsigma = "loglink", imu = NULL, isigma = NULL,
imethod = 1, ishrinkage = 0.95, zero = "sigma")
An object of class "vglmff"
(see vglmff-class
).
The object is used by modelling functions such as vglm
,
and vgam
.
Link function for mu
and sigma
.
See Links
for more choices.
Optional initial values for mu
and sigma
.
A NULL
means a value is obtained internally.
See CommonVGAMffArguments
for information.
T. W. Yee
The probability density function can be written
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
Jorgensen, B. (1997). The Theory of Dispersion Models. London: Chapman & Hall
Song, P. X.-K. (2007). Correlated Data Analysis: Modeling, Analytics, and Applications. Springer.
dsimplex
,
dirichlet
,
rigff
,
binomialff
.
sdata <- data.frame(x2 = runif(nn <- 1000))
sdata <- transform(sdata, eta1 = 1 + 2 * x2,
eta2 = 1 - 2 * x2)
sdata <- transform(sdata, y = rsimplex(nn, mu = logitlink(eta1, inverse = TRUE),
dispersion = exp(eta2)))
(fit <- vglm(y ~ x2, simplex(zero = NULL), data = sdata, trace = TRUE))
coef(fit, matrix = TRUE)
summary(fit)
Run the code above in your browser using DataLab