Learn R Programming

dbmss (version 1.2.4)

SimulateKd: Simulations of point patterns to obtain values of Kd under the null hypothesis

Description

This function is used internally by KdEnvelope to fill the simulation matrix.

Usage

SimulateKd(X, r, ReferenceType, NeighborType, Weighted = FALSE, SimulationType = "RandomLocation")

Arguments

X
A point pattern (ppp.object), marks must be a dataframe with two columns: PointType: labels, as factors. PointWeight: weights.
r
A vector of distances.
ReferenceType
One of the point types.
NeighborType
One of the point types.
Weighted
Logical; if TRUE, estimates the Kemp function.
SimulationType
A string describing the null hypothesis to simulate. The null hypothesis may be "RandomLocation": points are redistributed on the actual locations; "RandomLabeling": randomizes point types, keeping locations and weights unchanged; "P

Value

  • A vector containing simulated Kd(r) values.

See Also

KdEnvelope