Hello,
I am trying to run the secr.test function on the following multisession model:
mod <- secr.fit(capthist = ch,
model=list(D~s(Yscaled, Session, k=10, fx=TRUE), g0~s(Session, k=3, fx=TRUE)+h2, sigma~h2),
mask=mask,
details = list(autoini = 9, hessian = TRUE),
trace = TRUE)
The buffer of the mask was cropped using a polygon to exclude uninhabitable areas.
It get the following error:
# Error in rep(1:nrow(core), nm) : invalid 'times' argument
# In addition: Warning message:
# In getnm(cellsize, unlist(D)) : NA values of D set to zero
We have narrowed it down to the sim.popn function but are struggling to work out exactly what is causing the error within the function. Any guidance would be much appreciated and happy to provide any additional information.
Many thanks in advance,
Georgie