Last chance! 50% off unlimited learning
Sale ends in
Estimates the two parameters of the cardioid distribution by maximum likelihood estimation.
cardioid(lmu = extlogitlink(min = 0, max = 2*pi),
lrho = extlogitlink(min = -0.5, max = 0.5),
imu = NULL, irho = 0.3, nsimEIM = 100, zero = NULL)
An object of class "vglmff"
(see
vglmff-class
). The object is used by modelling
functions such as vglm
, rrvglm
and vgam
.
Parameter link functions applied to the Links
for more choices.
Initial values.
A NULL
means an initial value is chosen internally.
See CommonVGAMffArguments
for more information.
See CommonVGAMffArguments
for more information.
T. W. Yee
Numerically, this distribution can be difficult to fit because
of a log-likelihood having multiple maximums. The user is
therefore encouraged to try different starting values, i.e.,
make use of imu
and irho
.
The two-parameter cardioid distribution
has a density that can be written as
For positive
Jammalamadaka, S. R. and SenGupta, A. (2001). Topics in Circular Statistics, Singapore: World Scientific.
rcard
,
extlogitlink
,
vonmises
.
CircStats and circular currently have a lot more R functions for circular data than the VGAM package.
if (FALSE) {
cdata <- data.frame(y = rcard(n = 1000, mu = 4, rho = 0.45))
fit <- vglm(y ~ 1, cardioid, data = cdata, trace = TRUE)
coef(fit, matrix=TRUE)
Coef(fit)
c(with(cdata, mean(y)), head(fitted(fit), 1))
summary(fit)
}
Run the code above in your browser using DataLab