Hi all,
I am trying to estimate marsh bird abundance using two years of time to detection data. I have 262 point count sites that were visited 3 times over both years. I am using the passive listening period (5, 1-minute intervals) of my surveys to generate encounter frequencies. I have been following the book to create an unmarkedFrameGMM() using a stacked data approach, so I'm working with a Y array of 524 rows and 90 columns.
Here is what my siteCovs look like:
scovs <- cbind(allcovs[,c("DS_Percentage","EdgeDist", "DevDist")], date=daymat, wind=windmat, sky=skymat, temp=tempmat, observer=obsmat)
Here is my y for the first year for which I repeated for the second year and rbinded to stack my data (Ystack):
Y <- array(NA, c(262, 3, 30))
Y[1:262, 1, 1:30] <- capCLRA21.h1
Y[1:262, 2, 1:30] <- capCLRA21.h2
Y[1:262, 3, 1:30] <- capCLRA21.h3
Ywide1 <- cbind(capCLRA21.h1, capCLRA21.h2, capCLRA21.h3)
This is how I fit the unmarkedFrameGMM:
intervalMat <- matrix(c('1','2','3','4','5'), 524, 5, byrow=TRUE)
o2y <- matrix(1,5,90)
summary(CLRA.umf <- unmarkedFrameGMM(y=Ystack, siteCovs = scovs, numPrimary=1, obsCovs= list(interval=intervalMat), piFun="crPiFun", obsToY = o2y))
If I try to run the null model: null <- gmultmix(~1, ~1, ~1, data=CLRA.umf, mixture = "P"), I get the following error: Error in optim(starts, nll, method = method, hessian = se, ...) :
initial value in 'vmmin' is not finite.
If I take out siteCovs completely or try increasing K, it gives me the same error. I've read through previous posts on this error, but I'm getting nowhere. If anyone has any suggestions, I'll greatly appreciate the help.
Best,