formula).
capthist $n.S$
B transient (Markovian) response capthist $n.S$
g group see below $n$
h2 2-class mixture -- 2
h3 3-class mixture -- 2
session session factor (one level for each session) automatic $R$
Session session number 0:(R-1) automatic $R$
[user] individual covariate covariates (capthist) $n$
[user] session covariate sessioncov $R$
[user] time covariate timecov $S$
[user] detector covariate covariates (traps) $K$
}
The classic `learned response' is a step change following first
detection; this is implemented with the predictor variable `b' which is
FALSE up to and including the time of first capture and TRUE afterwards.
An alternative is a response that depends only on detection at the last
opportunity (`B').
Groups (`g') are defined by the interaction of the capthist
categorical (factor) individual covariates identified in secr.fit
argument `groups'. Groups are redundant with conditional likelihood
because individual covariates of whatever sort (continuous or
categorical) may be included freely in the model.
Individual heterogeneity (`h' in the notation of Otis et al. 1978) may
modelled by treating any detection parameter as a 2-part or 3-part finite mixture e.g. g0 $\sim{~}$
h2. See dframe. This feature is
untested.
The submodels for `g0', `sigma' and `z' are named components of the
model argument of secr.fit. They are expressed in Rformula notation by appending terms to $\sim{~}$.
The name of the response may optionally appear on the left hand side of
the formula (e.g. g0$\sim{~}$b).secr models, secr density models, secr.fit## constant (null) model
list(g0 = ~1, sigma = ~1)
## both detection parameters change after first capture
list(g0 = ~b, sigma = ~b)
## group-specific parameters; additive time effect on g0
## groups are defined via the 'groups' argument of secr.fit
list(g0 = ~ g + t, sigma = ~ g)
## g0 depends on trap-specific covariate
list(g0 = ~ kcov)Run the code above in your browser using DataLab