Hi all,
I am running into two problems while attempting to add telemetry data to a hair snare trapping dataset. The hair snare dataset has 1 session, 8 occasions, 36 detectors, 41 individuals detected a total of 77 times. The concurrent telemetry dataset includes 11 telemetered individuals, 8 of which were detected on hair snares, with 329-5149 locations per animal (app. 26,000 points total). Telem data were collapsed to a single session.
My two problems are:
1) On using addTelemetry, I get a warning that the covariates in the telemetry CH do not match the detection CH. The detection CH included sex covariates. I attempted to add a 'sex' column (M/F) to the telemetry txt file but got the same error. Is there a way to include sex covariates and telem data? I have not found documentation on this.
#In addTelemetry(HSjanapr17, HStelem17, type = c("concurrent"), #collapsetelemetry = TRUE, :
#covariates in telemetryCH do not match detectionCH so covariates discarded
If I move forward anyway, I run into:
2) A returned likelihood NA when I call secr.fit. In line with suggestions from the 'Telemetry data in secr 3.0' vignette, I have tried triple checking the telem file for location errors, changing the detection function to HEX, scaling telemetry data between 1e3 to 1e12, and including trace=TRUE and details = list(debug=1) .... none of which have budged it. Initial values for D, g0, and sigma seem reasonable to me.
It appears that the problems start from the beginning:
#Initial values D = 0.00232, g0 = 0.13603, sigma = 1159.68168
#Maximizing likelihood...
#Eval Loglik lambda0 sigma
#secrloglik resultcode 9 non-finite value in secrloglik
#Likelihood components 9.3464 -398.7629 0 0 0 0
# 1 NA -1.9226 7.0559
.....
Warning messages:
1: In FUN(X[[i]], ...) :
zero likelihood with telemetry data suggests numerical problem - try larger telemetryscale
Thanks in advance for any and all help in navigating these problems!
Below are relevant code and the three input files, if helpful in diagnosing.
Darcy
HSjanapr17 <- read.capthist("hs_janapr17_caps.txt", "hs_janapr17_traps.txt", detector = "multi", covnames = "sex")
HSMask <- make.mask(traps(HSjanapr17), buffer = 10000, spacing=500, type = c("trapbuffer"), poly = nonHab, poly.habitat = FALSE)
HStelem17<-read.telemetry(file = "telemdataHS172.txt")
HSjanapr17telem<-addTelemetry(HSjanapr17, HStelem17, type= c("concurrent"), collapsetelemetry =TRUE, verify=TRUE)
HS17fit1<-secr.fit(HSjanapr17telem, mask = HSMask, detectfn = 'HHN', CL=TRUE, details = list(debug = 1), trace = TRUE)
--
Darcy Doran-Myers
University of Alberta
Biological Sciences- Ecology