Simulate capture histories with trap-level covariates

Is there a way to specify g0 and sigma values for detector-level covariates in secrdesign (or, directly in sim.capthist)?
In a previous study, we've used three different collection devices to snag bear hair for DNA samples. In order to model the effects of these different devices, we included a detector-level covariate in the model for both g0 and sigma. This worked out really well, and we'd like to use these same detectors in a different area. We are working to design an optimal layout for the new area using the secrdesign package, but I cannot figure out how to specify the g0 and sigma levels for the different detector covariate levels.
What I've started out with is:
But what I really want to do is somehow specify values for the different trap types (i.e., g0.snag, g0.corral, g0.rubtree, sigma.snag, sigma.corral, sigma.rubtree).
Thanks!
In a previous study, we've used three different collection devices to snag bear hair for DNA samples. In order to model the effects of these different devices, we included a detector-level covariate in the model for both g0 and sigma. This worked out really well, and we'd like to use these same detectors in a different area. We are working to design an optimal layout for the new area using the secrdesign package, but I cannot figure out how to specify the g0 and sigma levels for the different detector covariate levels.
What I've started out with is:
- Code: Select all
scen6 <- make.scenarios(D = c(0.0025, 0.005, 0.0075, 0.001), sigma = 5115, g0 = 0.0054,
noccasions = 4, detectfn = "HN")
scenarioSummary(scen6, trapset = traps.all)
sims6 <- run.scenarios(nrepl = 50, trapset = traps.all,
scenarios = scen6, seed = 99801, fit = FALSE,
fit.args = list(detectfn = 0, model = list(g0~trap.type,
sigma~trap.type)), det.args = list(binomN = 1), ncores = 4)
But what I really want to do is somehow specify values for the different trap types (i.e., g0.snag, g0.corral, g0.rubtree, sigma.snag, sigma.corral, sigma.rubtree).
Thanks!