I am trying to analyse data from 3-4 occasions within multiple sessions of individuals caught in traps but when I try to run secr.fit I receive the following error messages:
> fsecr1 <- secr.fit(capturedata, model = list(D ~ 1, g0 ~ 1, sigma ~ 1), buffer = 10000, mask=grid)
Checking data
Preparing detection design matrices
Preparing density design matrix
Finding initial parameter values...
Warning messages:
1: In autoini(ch, msk, binomN = details$binomN, ignoreusage = details$ignoreusage) :
could not calculate 'dbar'; using detector spacing
2: In secr.fit(capturedata, model = list(D ~ 1, g0 ~ 1, sigma ~ 1), :
'secr.fit' failed because initial values not found (data sparse?); specify transformed values in 'start'
I'm at a loss at to what to do but imagine it is something quite simple. Has anyone else run into this issue? I have attached my capturedata and grid files (x and y, respectively, in quenda_data.RData) as well as my code (SCR_quenda_BAJ.R).