rbchan / unmarked

R package for hierarchical models in ecological research
https://rbchan.github.io/unmarked/
36 stars 25 forks source link

simulate fails for pcountOpen fits when fix="gamma" #110

Closed rbchan closed 5 years ago

rbchan commented 6 years ago
> (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
>
kenkellner commented 5 years ago

Fixed in #121 and #133