cardioid(lmu="elogit", lrho="elogit",
emu=if(lmu=="elogit") list(min=0, max=2*pi) else list(),
erho=if(lmu=="elogit") list(min=-0.5, max=0.5) else list(),
imu=NULL, irho=0.3, nsimEIM=100, zero=NULL)
Links
for more choices.earg
in Links
for general information.NULL
means an initial value is chosen internally.
See CommonVGAMffArguments
for more information.CommonVGAMffArguments
for more information."vglmff"
(see vglmff-class
).
The object is used by modelling functions such as vglm
,
rrvglm
and vgam
.imu
and irho
.For positive $\rho$ the distribution is unimodal and symmetric about $\mu$. The mean of $Y$ (which make up the fitted values) is $\pi + (\rho/\pi) ((2 \pi-\mu) \sin(2 \pi-\mu) + \cos(2 \pi-\mu) - \mu \sin(\mu) - \cos(\mu))$.
rcard
,
elogit
,
vonmises
.
y = rcard(n=1000, mu=4, rho=0.45)
fit = vglm(y ~ 1, cardioid, trace=TRUE)
coef(fit, matrix=TRUE)
Coef(fit)
c(mean(y), fitted(fit)[1,])
summary(fit)
Run the code above in your browser using DataLab