by jlaake » Tue Mar 11, 2008 6:25 pm
Eric-
Below is an example using a modified version of the function contained in the help for the edwards.eberhardt example data set. As you can see the model averaged result is 19.078 for f(0) which when added to M(t+1) gives an average N of 95 which is the result for the third model which has almost all of the weight. Have you checked to see if the estimated N is greater than M(t+1) for your models. It is quote common for f(0) <1 if the model thinks all animals have been caught over the course of the study (even if that is not the case). There is a recent paper by Jason Baker on monk seals that examines the problems with heterogeneity with closed capture models. It was quite common that his estimate of N was M(t+1) even though he had observations of missed seals that were seen outside the sampling occasions.
As far as I know the code is working correctly. I hadn't heard from you in awhile and assumed you had worked out any issues. I used the current version for the example which is v1.7.7 posted 6 March 2008.
regards --jeff
> run.edwards.eberhardt
function()
{
#
# Define parameter models
#
pdotshared=list(formula=~1,share=TRUE)
ptimeshared=list(formula=~time,share=TRUE)
#
# Run assortment of models
#
#
# Capture Closed models
#
# constant p=c
ee.closed.m0 =mark(edwards.eberhardt,model="Closed",model.parameters=list(p=pdotshared))
# constant p and constant c but different
ee.closed.m0c =mark(edwards.eberhardt,model="Closed")
# time varying p=c
ee.closed.mt =mark(edwards.eberhardt,model="Closed",model.parameters=list(p=ptimeshared))
#
# Return model table and list of models
#
return(collect.models() )
}
> ee.results=run.edwards.eberhardt()
> ee.results
model npar AICc DeltaAICc weight Deviance
3 p(~time)c()N(~1) 19 354.5968 0.00000 9.999949e-01 305.2648
1 p(~1)c()N(~1) 2 379.6029 25.00616 3.715170e-06 364.8259
2 p(~1)c(~1)N(~1) 3 381.5498 26.95301 1.403543e-06 364.7640
> summary(ee.results[[1]])$real$N
[,1]
96.25877
> summary(ee.results[[2]])$real$N
[,1]
93.89185
> summary(ee.results[[3]])$real$N
[,1]
95.07817
> model.average(ee.results,"N")
par.index estimate se fixed group
N g1 36 19.07818 6.613443 1
> 19.078+76
[1] 95.078