vonmises(llocation = elogit(min = 0, max = 2 * pi), lscale = "loge",
ilocation = NULL, iscale = NULL, imethod = 1, zero = NULL)
Links
for more choices.
For $k$, a log link is the default because the parameter is positive.imethod
. Assigning a value will override
the argument imethod
.imethod
. Assigning a value will override
the argument imethod
.1
or 2
which
specifies the initialization method. If failure to converge occurs
try the other value, or else specify a value for
ilocation
and iscale
."vglmff"
(see vglmff-class
).
The object is used by modelling functions such as vglm
,
rrvglm
and vgam
.ilocation
and iscale
.Bessel
,
cardioid
.
vdata <- data.frame(x2 = runif(nn <- 1000))
vdata <- transform(vdata, y = rnorm(nn, m = 2+x2, sd = exp(0.2))) # Bad data!!
fit <- vglm(y ~ x2, vonmises(zero = 2), vdata, trace = TRUE)
coef(fit, matrix = TRUE)
Coef(fit)
with(vdata, range(y)) # Original data
range(depvar(fit)) # Processed data is in [0,2*pi)
Run the code above in your browser using DataLab