Hi Murray,
I am trying to plot the detection probability for naive and experienced Bandicoots across sexes. The preferred SECR model is fit.b2.h2 that you would be familiar with from previous years.
fit.b2.h2 <- secr.fit(myall2014, verify=F, model = list(g0~b+h2, sigma~b+h2),hcov = 'sex', buffer=400, trace = FALSE)
I can then plot the detection probability for naive males and females:
plot (fit.b2.h2, xval = 0:250, ylim = c(0, 0.3))
but when I try and add experienced animals using:
plot (fit.b2.h2, newdata = data.frame(b=1), add = TRUE, col = "red")
I get the following error:
Error in secr.lpredictor(newdata = newdata, model = models[[x]], indx = parindices[[x]], :
one or more model covariates not found in 'new data'
If you could assist with interpreting this error I would be most appreciative.
All the best,
Roy