This function estimates the raw density of recovered individuals in space and time from given data using a kernel density estimate.

estKDE(
  markRecaptureObject,
  res = 100,
  all = FALSE,
  xname = "longitude",
  yname = "latitude",
  timename = "age",
  bw = NULL,
  lam = 1.1
)

Arguments

markRecaptureObject

object of class markRecaptureObject (see markRecaptureObject())

res

resolution in space

all

boolean: if TRUE only one kernel density estimate will be calculated summarizing all breeding areas. Defaults to FALSE.

xname

name of x variable, e.g. longitude

yname

name of y variable, e.g. latitude

timename

name of time variable, e.g. age

bw

numeric. Spatial bandwidth parameter. Defaults to NULL.

lam

numeric. temporal bandwidth parameter. Defaults to 1.1.

Value

markRecaptureObject with list of values created by sparr::spattemp.density (see ?sparr::spattemp.density for details) and spatial resolution.

Examples

mro <- estKDE(mro1D)
#> [1] 0.08515701
#> Calculating trivariate smooth...
#> Done.
#> Edge-correcting...
#> Done.
#> Conditioning on time...
#> Done.
#> [1] 0.08980789
#> Calculating trivariate smooth...
#> Done.
#> Edge-correcting...
#> Done.
#> Conditioning on time...
#> Done.
#> [1] 0.08269934
#> Calculating trivariate smooth...
#> Done.
#> Edge-correcting...
#> Done.
#> Conditioning on time...
#> Done.