Description Usage Arguments Details References See Also Examples
Minimize the negative log-likelihood for the CCRW though numerical maximization.
1 | mnllCCRWdn(SL, TA, TA_C, missL, SLmin)
|
SL |
numeric vector containing the step lengths |
TA |
numeric vector containing the turning angles |
TA_C |
circular object containing the turning angles |
missL |
integer vector containing the number of time step between two steps. If no missing location it will be 1. |
SLmin |
one numeric value representing the minimum step length |
This function uses the optim to numerically minimize the negative log-likelihood. Note that optim requires setting starting parameter values. To decrease the chances of having results associated with a local peak in the likelihood, the function mnllCCRW applies use set of different starting values combinations and choose the overall lowest negative log-likelihood estimate. To explore the effect of starting values, use directly the nllCCRWdn function.
Please refer to Auger-Methe, M., A.E. Derocher, M.J. Plank, E.A. Codling, M.A. Lewis (2015-In Press) Differentiating the Levy walk from a composite correlated random walk. Methods in Ecology and Evolution. Preprint available at http://arxiv.org/abs/1406.4355
1 2 3 4 | simPath <- simmCCRW(500,0.9,0.9,0.1,0.01,5,1)
formPath <- movFormat(simPath)
mnllCCRWdn(formPath$SL, formPath$TA, formPath$TA_C,
formPath$missL, formPath$SLmin)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.