Hello everyone!
I'm currently playing around with gdistsamp in unmarked and have encountered a very solid brick wall. I'm trying to run an analysis with transect data and I encounter issues with running my null model. As with many before, it seems that I'm failing to provide appropriate starting values. I've attempted to use a good variety of starting values but have zero clue how to get past this issue.
birdobs<-str(yhpaobs)-as.matrix(birddata[,2:5])
breaks<-c(0,100,200,300,400)
transect.length<-1000
sitecovs<-birddata[,6:7]
sitecovs[,"area"]<-((800*1000)/10000)
umf <- unmarkedFrameGDS(y = birdobs, survey="line", unitsIn="m", siteCovs=sitecovs,
dist.breaks=breaks, tlength=rep(transect.length, nrow(birddata)), numPrimary=1)
summary(umf)
unmarkedFrame Object
205 sites
Maximum number of observations per site: 4
Mean number of observations per site: 4
Number of primary survey periods: 1
Number of secondary survey periods: 1
Sites with at least one detection: 123
Tabulation of y observations:
0 1 2 3 4 5 6 7 8 9 10 11 12 14 16 17 38 <NA>
600 4 111 10 48 5 16 1 6 2 7 1 2 3 1 2 1 0
Site-level covariates:
savanna protection area
dense: 96 protected : 94 Min. :80
open :109 unprotected:111 1st Qu.:80
Median :80
Mean :80
3rd Qu.:80
Max. :80
p.null<-gdistsamp(~1,~1,~1, data=umf, output="abund", starts=c(0,0,5))
Error in optim(starts, nll, method = method, hessian = se, ...) :
initial value in 'vmmin' is not finite
I understand the very basic concept of providing starting values but I have limited idea as to how to define them -- I also see (from other posts) that every analysis is different in this regard but surely there are some sorts of guidelines? I can't seem to find much regarding starting values in the AHM book (though it's a large body of literature so perhaps it's hidden in there somewhere). Perhaps I'm going wrong in some other way?
Thanks in advance for the assistance! I would love to get this figured out, especially as it seems that many before me have struggled with this issue.
Best,
D.J. McNeil