Learn R Programming

spNetwork (version 0.2.1)

corrfactor_simple: Simple NKDE border correction

Description

A function to calculate the Diggle correction factor with the simple NKDE.

Usage

corrfactor_simple(graph, events, edges, bws)

Arguments

graph

The graph (igraph) used to calculate distances between nodes

events

The id of the vertex for each events

edges

A SpatialLinesDataFrame representing the edges of the graph

bws

A vector of the bandwidths for each event

Value

A numeric vector with the correction factor values