Hello,
I am trying to run secr.test for a multisession model with a user defined distance function. Here is the model specification ("sf" is a spatial covariate added to the habitat mask):
details <- list(userdist = anisodistfn, miscparm = c(psiA = 3, psiR = 1.5))
model <- secr.fit(CH, mask = habitat.mask, detectfn = "HHN", trace = FALSE,
details = details, groups = "sex",
model = list(lambda0 = ~ g, sigma = ~ g, D = ~ sf + session))
I am getting the following error:
Error in attr(session.mask, "miscparm") <- coef(object)[miscindx, 1] :
attempt to set an attribute on NULL
I am hoping to get some direction on what could be going wrong. Thanks and please let me know if I can provide more information — this is my first time posting here.
-Rebeca