secr.test issue: Error in rep(1:nrow(core), nm) : invalid 'times' argument

17 views
Skip to first unread message

georgie whittome

unread,
Mar 14, 2025, 10:38:12 AMMar 14
to secr

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 

Reply all
Reply to author
Forward
0 new messages