Description Usage Arguments Details Value Author(s) See Also Examples
Predictor method for CJS capture-recapture objects. Return expected values for all active cells in the model.
1 2 |
object |
CJS capture-recapture model as output from F.cjs.estim |
... |
Additional arguments to other functions. Not used, but must be here
for compatibility with the generic |
The only components of cjsobj
needed are $histories
, $p.hat
, $s.hat
A nan X ns matrix of fitted values (=cell expected value), where
nan=number of animals and ns=number of samples. Fitted values in the
non-active cells are set to NA. Non-active
cells are those prior to and including the initial capture, and after
the occasion on which an animal is known to have died. Computation of
expected values is described in the details
section of the help file
for F.cjs.gof
.
Trent McDonald, WEST Inc., tmcdonald@west-inc.com
1 2 3 4 5 6 | # Fit CJS model to dipper data, time-varying capture and survivals.
data(dipper.histories)
xy <- F.cjs.covars( nrow(dipper.histories), ncol(dipper.histories) )
for(j in 1:ncol(dipper.histories)){ assign(paste("x",j,sep=""), xy$x[,,j]) }
dipper.cjs <- F.cjs.estim( ~x2+x3+x4+x5+x6, ~x1+x2+x3+x4+x5, dipper.histories )
dipper.expected <- predict(dipper.cjs)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.