estimateMap3DKernel: Estimates spatio-temporal kernel density model

View source: R/01-estimateMap.R

estimateMap3DKernelR Documentation

Estimates spatio-temporal kernel density model

Description

Estimates spatio-temporal kernel density model

Usage

estimateMap3DKernel(
  data,
  Longitude,
  Latitude,
  DateOne,
  DateTwo,
  center = c("Europe", "Pacific"),
  independent = NULL,
  DateType = "Interval",
  CoordType = "decimal degrees",
  Weighting = NULL,
  clusterMethod = NULL,
  nClust = 5,
  nClustRange = c(2, 10),
  kMeansAlgo = "Hartigan-Wong",
  clusterTimeRange = c(0, 1000),
  modelUnc = FALSE,
  dateUnc = "point",
  restriction = c(-90, 90, -180, 180),
  nSim = 10,
  kdeType = "1"
)

Arguments

data

data.frame: data

Longitude

character: name of longitude variable

Latitude

character: name of latitude variable

DateOne

character: name of date variable 1 (lower interval point / mean / single point)

DateTwo

character: name of date variable 2 (upper interval point / sd / )

center

(character) center to shift data to, either "Europe" or "Pacific"

independent

character: name of presence/absence variable (optional)

DateType

character: one of "Interval", "Mean + 1 SD uncertainty" and "Single Point"

CoordType

character: type of longitude/latitude coordinates. One of "decimal degrees", "degrees minutes seconds" and "degrees decimal minutes"

Weighting

character: name of weighting variable

clusterMethod

character: cluster method

nClust

numeric: how many clusters

nClustRange

numeric: range of potential mclust cluster

kMeansAlgo

character: kmeans algorithm as in stats:kmeans

clusterTimeRange

numeric vector: time range of cluster

modelUnc

boolean: Include dating uncertainty

dateUnc

character: one of "uniform", "normal", "point"

restriction

numeric vector: spatially restricts model data 4 entries for latitude (min/max) and longitude(min/max)

nSim

numeric: number of bootstrap samples

kdeType

character: "1" for correlated bandwidth, "2" for diagonal bandwidth, "3" for diagonal, equal long/lat bandwidth

Examples

## Not run: 
# load data
data <- readRDS(system.file("extData", "exampleData.Rds", package = "DSSM"))
# estimate model-map
map <- estimateMap3D(data = data, independent = "d13C", Longitude = "longitude",
Latitude = "latitude", DateOne = "dateLower", DateTwo = "dateUpper", Site = "site")
# Plot the map
plotMap3D(model = map, time = median(data$dateLower, na.rm = TRUE))

## End(Not run)

Pandora-IsoMemo/iso-app documentation built on July 4, 2024, 7:07 p.m.