Learn R Programming

dbmss (version 1.2.4)

SimulateM: Simulations of point patterns to obtain values of M under the null hypothesis

Description

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

Usage

SimulateM(X, r, ReferenceType, NeighborType, SimulationType = "RandomLocation", CaseControl = FALSE)

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.
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
CaseControl
Logical; if TRUE, the case-control version of M is computed. ReferenceType points are cases, NeighborType points are controls.

Value

  • A vector containing simulated M(r) values.

See Also

MEnvelope