I'm a R beginner trying to fit a ZIP:
set.seed(5695)
a<-c(rep(0,250),rpois(n=750,lambda=2))
fpoisZI <- fitdist(a, "ZIP", start=list(sigma=sum(a == 0)/length(a), mu=mean(a)))
I think this code should be ok, but then it appears an error message:
The dZIP function must be defined
Any idea about what am I doing wrong?