I'm trying to use R-distance to get abundance estimates of birds from transect data. I'm quite confident I have the code right but I am getting "Inf" for the abundance estimate, which I'm assuming means infinite. Can anyone tell me why? Here's the code for the abundance:
dfunc <- F.dfunc.estim(M.ob, likelihood="halfnorm", w.hi=40)
plot(dfunc) # construct distance function
##
abun<- F.abund.estim(dfunc, detection.data=M.ob,
transect.data=M.t,
area=100, R=100, ci=0.95, plot.bs=TRUE)
Where M.ob are the observations with perp. distance from the transect, and M.t is the details on the transect (length eg.).
Thanks for your help. If I you need more details on my data let me know.
EDIT: These are functions from the package "R-distance".
Here's what my data looks like:
> head(M.ob)
siteID groupsize dist sample
1 L1 1 5 1
2 L1 1 5 1
3 L1 1 5 1
4 L1 1 5 1
5 L1 1 5 1
6 L1 1 5 1
> str(M.ob)
'data.frame': 85 obs. of 4 variables:
$ siteID : Factor w/ 3 levels "L1","L2","L3": 1 1 1 1 1 1 1 1 1 1 ...
$ groupsize: num 1 1 1 1 1 1 1 1 1 1 ...
$ dist : num 5 5 5 5 5 5 5 5 10 10 ...
$ sample : num 1 1 1 1 1 1 1 1 1 1 ...
And the M.t :
> head(M.t)
siteID Length lead.
1 L1 500 low
2 L2 500 low
3 L3 500 low
> str(M.t)
'data.frame': 3 obs. of 3 variables:
$ siteID: Factor w/ 3 levels "L1","L2","L3": 1 2 3
$ Length: num 500 500 500
$ lead. : Factor w/ 1 level "low": 1 1 1