Estimating the shape parameter of the Yule-Simon distribution.
yulesimon(lshape = "loge", ishape = NULL, nsimEIM = 200, zero = NULL)
Link function for the shape parameter,
called
Links
for more choices and for general information.
Optional initial value for the (positive) parameter.
See CommonVGAMffArguments
for more information.
The default is to obtain an initial value internally. Use this argument
if the default fails.
See CommonVGAMffArguments
for more information.
An object of class "vglmff"
(see vglmff-class
).
The object is used by modelling functions such as vglm
and vgam
.
The probability function is
beta
function,
and dyules
computes this probability function.
The mean of
The distribution was named after Udny Yule and Herbert A. Simon. Simon originally called it the Yule distribution. This family function can handle multiple responses.
Simon, H. A. (1955) On a class of skew distribution functions. Biometrika, 42, 425--440.
# NOT RUN {
ydata <- data.frame(x2 = runif(nn <- 1000))
ydata <- transform(ydata, y = ryules(nn, shape = exp(1.5 - x2)))
with(ydata, table(y))
fit <- vglm(y ~ x2, yulesimon, data = ydata, trace = TRUE)
coef(fit, matrix = TRUE)
summary(fit)
# }
Run the code above in your browser using DataLab