m = 1.0; sigma = exp(0.5)
sy = sort(y <- rtikuv(n=1000, d=1, m=m, s=sigma))
fit = vglm(y ~ 1, fam=tikuv(d=1), trace=TRUE)
coef(fit, mat=TRUE)
(Cfit = Coef(fit))
mean(y)
hist(y, prob=TRUE)
lines(sy, dtikuv(sy, d=1, m=Cfit[1], s=Cfit[2]), col="red")
Run the code above in your browser using DataLab