rbchan/unmarked

simulate fails for pcountOpen fits when fix="gamma"

Closed this issue · 1 comments

> (m1 <- pcountOpen(~1, ~1, ~1, ~1, umf, K=20, fix="gamma"))

Call:
pcountOpen(lambdaformula = ~1, gammaformula = ~1, omegaformula = ~1, 
    pformula = ~1, data = umf, K = 20, fix = "gamma")

Abundance:
 Estimate    SE    z  P(>|z|)
     2.36 0.112 21.1 4.39e-99

Apparent Survival:
 Estimate   SE     z P(>|z|)
     12.2 24.4 0.498   0.618

Detection:
 Estimate    SE    z  P(>|z|)
   -0.727 0.158 -4.6 4.26e-06

AIC: 996.7418 
> simulate(m1)
Error in Xgam %*% coef(object, "gamma") : 
  requires numeric/complex matrix/vector arguments
>

Fixed in #121 and #133