vdata = data.frame(x = runif(nn <- 1000))
vdata = transform(vdata, y = rnorm(nn, m=2+x, sd=exp(0.2))) # Bad data!!
fit = vglm(y ~ x, vonmises(zero=2), vdata, trace=TRUE)
coef(fit, matrix=TRUE)
Coef(fit)
with(vdata, range(y)) # original data
range(fit@y) # processed data is in [0,2*pi)
Run the code above in your browser using DataLab