| Kmmhat | R Documentation |
Estimates of the Kmm function
Kmmhat(X, r = NULL, ReferenceType = "", CheckArguments = TRUE)
X |
A weighted, marked, planar point pattern ( |
r |
A vector of distances. If |
ReferenceType |
One of the point types. Others are ignored. Default is all point types. |
CheckArguments |
Logical; if |
The Kmm function is used to test the independence of marks.
An object of class fv, see fv.object, which can be plotted directly using plot.fv.
The function is computed using markcorrint in spatstat.
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.
Lmmhat, LmmEnvelope, markcorrint
data(paracou16)
# Keep only 50% of points to run this example
X <- as.wmppp(rthin(paracou16, 0.5))
autoplot(X,
labelSize = expression("Basal area (" ~cm^2~ ")"),
labelColor = "Species")
# Calculate Kmm
r <- seq(0, 30, 2)
(Paracou <- Kmmhat(X, r))
# Plot
autoplot(Paracou, ./(pi*r^2) ~ r)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.