Thank you Murray! Also, for pointing out that lambda0 (and not g0) is the appropriate detection parameter for polygon detectors (since they use hazard functions).
My previous message was a bit unclear, apologies. As mentioned, my covariate is sex (two levels: f, m; no NAs). While D~Sex works, both using sigma~Sex and (the wrong use of) g0~Sex cause R to crash. Both instances were set to CL = TRUE. The suggested use of lambda0~Sex with CL=TRUE also causes a fatal error.
Regarding the use of groups=”Sex”, I'd set CL=FALSE. Here, R crashes as well both when specifying the model with D~g; sigma~g; or lambda0~g respectively.
I’m interested in estimating densities. I expect sex differences in density as well as home range sizes, further I also suspect differences in detection.
While I went through vignettes, pdfs and conversations in this group, I’m still not sure if I understood everything correctly. Apart from modelling separate female and male sessions, there are three options for modelling the sex differences:
- Sex as group, i.e. groups=”Sex” & model term with ~g
- Sex as an individual covariate, i.e. model term with ~Sex
In the case of Sex, the individual covariate corresponds to two discrete groups, thus no preference in which approach to choose? While the group (full likelihood) models use density as a model parameter, the individual covariate (conditional likelihood) models derive density. Does that mean that in I my case, again there’s no preference in which approach to choose?
Lastly, you lean towards the use of individual covariates instead of groups, since the code is more stable?
3)
Using a finite mixture models, i.e. hcov=”Sex”
Those are especially useful as ‘hybrid’ models, when there are individuals of unknown sex. Since mixture models are for detection parameters only and don’t let me model different sex specific densities, they are not suitable for my question.
Independently, I will continue with discretized polygons from now on.
Many thanks,
Lukas