ldat = data.frame(y = rnorm(n=2000, mean=0.5, sd=0.1)) # Not good data
fit = vglm(y ~ 1, leipnik(ilambda=1), ldat, tr=TRUE, checkwz=FALSE)
fit = vglm(y ~ 1, leipnik(ilambda=1,llam=logoff, elam=list(offset=1)),
ldat, trace=TRUE, cri="coef")
head(fitted(fit))
with(ldat, 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