Compute aggregation of Ripley's K based on Baddeley et al. (1993)
Usage
baddeley.avg(K.vec, n.vec)
Arguments
- K.vec
Vector of Ripley's K estimates across a series of images
- n.vec
Vector of the number of points in each image
Value
Returns a weighted average of the Ripley's K values based on the number of points in each image
References
Baddeley et al. (1993). Analysis of a Three-Dimensional Point Pattern with Replication.
Journal of the Royal Statistical Society. Series C (Applied Statistics), 42(4), 641-668.
Examples
# Generate simulated Ripley's K values, areas, and number of points
K.vec <- rnorm(3, mean = 1000, sd = 100)
n.vec <- rnorm(3, mean = 300, sd = 50)
# Compute a weighted average
baddeley.avg(K.vec, n.vec)
#> [1] 874.9542