deselectNonMovementSteps {mkde} | R Documentation |
Flag non-movements so they are excluded from MKDE estimation
Description
This function deselects move steps where the probability that the initial and final location are the same location is greater than or equal to a user-defined threshold probability
Usage
deselectNonMovementSteps(move.dat, p)
Arguments
move.dat |
A move data object created with |
p |
The threshold probability |
Details
If the probability that the initial and final location are the same
location is greater than or equal to a user-defined threshold
probability, the corresponding value in move.dat$use.obs is set to
FALSE. Note that this function is not called within initialzeDensity
.
If you want to exclude locations because they the initial location in
a non-movement step, this function must be used before computing the density.
Value
An updated move data list object is returned.
Author(s)
Jeff A. Tracey, PhD
USGS Western Ecological Research Center, San Diego Field Station
jatracey@usgs.gov
James Sheppard, PhD
San Diego Zoo Institute for Conservation Research
jsheppard@sandiegozoo.org
Examples
data(condor)
mv.dat <- initializeMovementData(condor$time, condor$x, condor$y,
z.obs=condor$z, sig2obs=25.0, sig2obs.z=81.0, t.max=65.0)
mv.dat <- deselectNonMovementSteps(mv.dat, 0.05)