Closed BERENZ closed 2 years ago
This works well
m1 <- estimate_popsize(formula = TOTAL_SUB ~ ., data = farmsubmission, pop.var = "analytic", model = "ztgeom", method = "mle", weights = rep.int(1, nrow(farmsubmission)))
but if I replace ztgeom (or ztpoison) with ztnegbin I get an error
ztgeom
ztpoison
ztnegbin
m2 <- estimate_popsize(formula = TOTAL_SUB ~ ., data = farmsubmission, pop.var = "analytic", model = "ztnegbin", method = "mle", weights = rep.int(1, nrow(farmsubmission)))
Error in hessian(coefficients) : dims [product 4] do not match the length of object [12036]
which is connected with using scalar weights in ztnegbin().
ztnegbin()
solved by #33
This works well
but if I replace
ztgeom
(orztpoison
) withztnegbin
I get an errorwhich is connected with using scalar weights in
ztnegbin()
.