Dear team,
I was hoping to clarify a few elements of my understanding with you, specifically regarding covariates - I have read a lot but I think have just confused myself now. I am estimating leopard density in commercial farmland and I would like to also look at what environmental/anthropological factors might impact their spatial density/distribution.
Reading the various guide PDFs and other papers, I understand I can add trap specific environmental covariates to the trap file and model their influence on g0, and hence their potential influence on overall density. My understanding is that this just provides me with how that covariate influences detectability at each site and adjusts density estimates accordingly? Whereas for modelling influence of covariates on spatial density more widely across the survey area I would need to add the covariates to my mask rather than trap file? In order to add them to the mask and model influence on spatial density however, I need to have data on the covariates for all of the survey area - is that correct? For example, I know about whether lethal control is used or not on all the properties I had cameras on, but not necessarily all those in between/surrounding the immediate camera survey site, so would I be right in saying that my models would not run successfully/be useful if I tried to use this as a covariate in my mask to assess spatial density? But would still be able to look at overall density influence of this covariate by including it in the trap file? Whereas something like NDVI vegetation data across my whole survey area, including buffer, would be able to be used in a mask?
Slightly separate to this, I saw in someone's code recently (subset below) two options of models, measuring influence of covariates on g0 and on density:
### g0
# null
mLeopardg01 <- secr.fit(cptr_hst, model=g0~1, mask=mask5, detectfn=2, CL=TRUE)
# is magnitude of detection a learned response
mLeopardg02 <- secr.fit(cptr_hst, model=g0~b, mask=mask5, detectfn=2, CL=TRUE)
# is magnitude of detection affected by lethal control
mLeopardg03 <- secr.fit(cptr_hst, model=g0~Control, mask=mask5, detectfn=2, CL=TRUE)
### D
# null
mLeopardD1 <- secr.fit(cptr_hst, model=list(D~1, g0~session), mask=mask5, detectfn=2, CL=TRUE)
# is density affected by lethal control
mLeopardD2 <- secr.fit(cptr_hst, model=list(D~Control, g0~session), mask=mask5, detectfn=2, CL=TRUE)
I understood density as being derived and so I was a bit confused by this particular bit of code. If I only have one session, my understanding is that the '###D' objects would firstly not run with the current code, because g0~session would not be applicable, so if I then set g0~1 all my models would come out the same in this case as it is not impacted by anything because g0 won't differ if there is only one session, whereas if you were doing a multi-session survey you might want to explore this?
Many thanks in advance,
Jamie