Learn R Programming

mkde (version 0.4)

deselectNonMovementSteps: 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)

Value

An updated move data list object is returned.

Arguments

move.dat

A move data object created with initializeMovementData

p

The threshold probability

Author

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

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.

Examples

Run this code
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)

Run the code above in your browser using DataLab