Learn R Programming

dbmss (version 1.2.4)

Kmm.r: Estimation of the Kmm function

Description

Estimates of the Kmm function

Usage

Kmm.r(X, r, ReferenceType = "")

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. Others are ignored. Default is all point types.

Value

  • A vector containing Kmm(r) values.

Details

The Kmm function is used to test the independence of marks.

References

Penttinen, A., Stoyan, D. and Henttonen, H. M. (1992). Marked Point Processes in Forest Statistics. Forest Science 38(4): 806-824. Penttinen, A. (2006). Statistics for Marked Point Patterns. in The Yearbook of the Finnish Statistical Society. The Finnish Statistical Society, Helsinki: 70-91.

See Also

Lmm.r, LmmEnvelope, markcorrint

Examples

Run this code
data(paracou16)
# Keep only 50% of points to run this example
X <- rthin(paracou16, 0.5)
plot(X)

# Calculate Kmm
r <- seq(0, 30, 2)
ActualValues.X <- Kmm.r(X, r)

# Plot
PlotResults(r, DivideByPiR2(ActualValues.X, r), ylab="Kmm / (pi R^2)", ReferenceValue=1)

Run the code above in your browser using DataLab