Learn R Programming

dbmss (version 1.2.4)

SimulateKinhom: Simulations of point patterns to obtain values of Kinhom under the null hypothesis

Description

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

Usage

SimulateKinhom(X, r, ReferenceType, SimulationType="RandomPosition", lambda)

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.
SimulationType
A string describing the null hypothesis to simulate. The null hypothesis, may be "RandomPosition": points are drawn in an inhomogenous Poisson process (intensity is either lambda or estimated from X); "RandomLo
lambda
An estimation of the point pattern density, obtained by the density.ppp function.

Value

  • A vector containing simulated Kinhom(r) values.

See Also

KinhomEnvelope