Joe
You have too much choice! I use groups so rarely in secr.fit that I may have forgotten some of the detail, but:
1. Yes, if you specify D~1 in a full model with groups specified then you are requiring density to be the same in both groups. You do have the option of D~g, after all.
2. You can get sex-specific densities based on the actual number for each sex by specifying the groups argument in derived(), after first fitting a model with CL = T or CL = F. This is a completely different mechanism than groups in secr.fit - partitioning by sex only happens at the end. e.g.,
- Code: Select all
derived(ovenbird.model.1, groups='Sex')
3. I prefer myself to use the hcov argument in secr.fit to estimate both the total density and the sex ratio (pmix). e.g.,
- Code: Select all
secr.fit(housemouse, buffer=20, hcov='sex')
...
Fitted (real) parameters evaluated at base levels of covariates
session = coulombe, h2 = f
link estimate SE.estimate lcl ucl
D log 1.223132e+03 96.015316422 1.048955e+03 1.426230e+03
g0 logit 5.415499e-02 0.003520906 4.765443e-02 6.148504e-02
sigma log 3.820084e+00 0.110913844 3.608810e+00 4.043727e+00
pmix logit 4.970796e-01 0.038235311 4.227605e-01 5.715279e-01
session = coulombe, h2 = m
link estimate SE.estimate lcl ucl
D log 1.223132e+03 96.015316422 1.048955e+03 1.426230e+03
g0 logit 5.415499e-02 0.003520906 4.765443e-02 6.148504e-02
sigma log 3.820084e+00 0.110913844 3.608810e+00 4.043727e+00
pmix logit 5.029204e-01 0.038235311 4.284721e-01 5.772395e-01
This is a tidy method that works for both CL = T and CL = F. To model a sex effect on g0 or sigma use h2 in the formula .
Hope this helps
Murray