y = rnorm(n=2000, mean=0.5, sd=0.1) # Not good data
fit = vglm(y ~ 1, leipnik(ilambda=1), tr=TRUE, checkwz=FALSE)
fit = vglm(y ~ 1, leipnik(ilambda=1,llam=logoff, elam=list(offset=1)),
trace=TRUE, cri="coef")
fitted(fit)[1:5]
mean(y)
summary(fit)
coef(fit, matrix=TRUE)
Coef(fit)
sum(weights(fit)) # sum of the prior weights
sum(weights(fit, type="w")) # sum of the working weights
Run the code above in your browser using DataLab