Estimates the two parameters of the McCullagh (1989) distribution by maximum likelihood estimation.
mccullagh89(ltheta = "rhobit", lnu = logoff(offset = 0.5),
itheta = NULL, inu = NULL, zero = NULL)
Link functions
for the Links
for general information.
Numeric.
Optional initial values for
See CommonVGAMffArguments
for information.
An object of class "vglmff"
(see vglmff-class
).
The object is used by modelling functions such as vglm
,
rrvglm
and vgam
.
The McCullagh (1989) distribution has density function
This distribution is related to the Leipnik distribution (see Johnson
et al. (1995)), is related to ultraspherical functions, and under
certain conditions, arises as exit distributions for Brownian motion.
Fisher scoring is implemented here and it uses a diagonal matrix so
the parameters are globally orthogonal in the Fisher information sense.
McCullagh (1989) also states that, to some extent,
McCullagh, P. (1989) Some statistical properties of a family of continuous univariate distributions. Journal of the American Statistical Association, 84, 125--129.
Johnson, N. L. and Kotz, S. and Balakrishnan, N. (1995) Continuous Univariate Distributions, 2nd edition, Volume 2, New York: Wiley. (pages 612--617).
# NOT RUN {
mdata <- data.frame(y = rnorm(n = 1000, sd = 0.2)) # Limit as theta = 0, nu = Inf
fit <- vglm(y ~ 1, mccullagh89, data = mdata, trace = TRUE)
head(fitted(fit))
with(mdata, mean(y))
summary(fit)
coef(fit, matrix = TRUE)
Coef(fit)
# }
Run the code above in your browser using DataLab