In almost all cases, a CJS model fitted by F.cjs.estim already has a $residuals
component. This
routine either extracts this component, or computes residuals of the component if not found.
Observed component (o(ij)) in formulas above is the capture indicator for animal i during occasion j. If animal i
was seen during occasion j, o(ij) = 1. Otherwise, o(ij) = 0.
Expected component (e(ij)) in formula above is the expected value of the capture indicator for animal
i during occasion j. In other words, o(ij) is a binomial random variable with expected
value e(ij). Under the assumptions of a CJS model, e(ij) is computed as
phi(i(1)) * phi(i(2)) * ... * phi(i(j-1)) * p(ij), where
p(ij) is the estimated capture probability of animal i during occasion j, and phi(i(1)) is estimated survival during the first interval
following initial capture of the animal, phi(i(2)) is survival during the second interval
after initial capture,
and phi(i(j-1)) is survival during the interval just prior to occasion j.