Implementation of the univariate pair correlation function from spatstat
pair_correlation(
mif,
mnames,
r_range = NULL,
num_permutations = 100,
edge_correction = "translation",
keep_permutation_distribution = FALSE,
workers = 1,
overwrite = FALSE,
xloc = NULL,
yloc = NULL,
...
)
object of class `mif`
character vector of marker names
numeric vector including 0. If ignored, `spatstat` will decide range
integer indicating how many permutations to run to determine CSR estimate
character string of edge correction to apply to Ripley's K estimation
boolean for whether to keep the permutations or not
integer for number of threads to use when calculating metrics
boolean whether to overwrite existing results in the univariate_pair_correlation slot
column name of single x value
column name of single y value
other parameters to provide `spatstat::pcf`
The Pair Correlation Function uses the derivative of Ripley's K so it does take slightly longer to calculate
`xloc` and `yloc`, if NULL, will be calculated from columns `XMax`, `XMin`, `YMax`, and `YMin`.
mif object with with the univariate_pair_correlation derived slot filled or appended to