Thanks, Marc; that makes sense to me.
Ok, another question, if I may? I set numPrimary=3 and it seems to run ok now, at least it's not producing the error in optim. Now I'm unclear on what unmarked is outputting, since whether I set output="density" or output="abund", both models return with 'Abundance' estimates. Is the 'Abundance' estimate for nullmodel the density in my 50 m radius circle?
Thanks for your help!
Code and output below:
CODE
ydat <- formatDistData(birds.sub2, distCol="BinCenter", transectNameCol="Station", dist.breaks=dbands, occasionCol="Visit")
umf <- unmarkedFrameGDS(y=as.matrix(ydat), numPrimary=3, dist.breaks=dbands, survey="point", unitsIn="m")
nullmodel <- gdistsamp(~ 1, ~1, ~ 1, umf, keyfun="halfnorm", output = "density", unitsOut="ha", se=TRUE)
nullmodel2 <- gdistsamp(~ 1, ~1, ~ 1, umf, keyfun="halfnorm", output = "abund", unitsOut="ha", se=TRUE)
OUTPUT
Call:
gdistsamp(lambdaformula = ~1, phiformula = ~1, pformula = ~1,
data = umf, keyfun = "halfnorm", output = "density", unitsOut = "ha",
se = TRUE)
Abundance:
Estimate SE z P(>|z|)
2.26 0.674 3.36 0.000781
Availability:
Estimate SE z P(>|z|)
-1.9 0.788 -2.4 0.0162
Detection:
Estimate SE z P(>|z|)
3.77 0.189 20 1.18e-88
AIC: 1201.548
Call:
gdistsamp(lambdaformula = ~1, phiformula = ~1, pformula = ~1,
data = umf, keyfun = "halfnorm", output = "abund", unitsOut = "ha",
se = TRUE)
Abundance:
Estimate SE z P(>|z|)
2.03 0.681 2.98 0.00286
Availability:
Estimate SE z P(>|z|)
-1.9 0.795 -2.39 0.0166
Detection:
Estimate SE z P(>|z|)
3.77 0.189 20 1.2e-88
AIC: 1201.548