# Pairwise CLQ conditional permutation implementation

Source:`R/pariwise-colocation-impl.R`

`pairwise_colocation_perm_impl.Rd`

Internal implementation of the pairwise CQL using conditional permutation. Functionally the same as `pairwise_colocation()`

.

## Arguments

- A
a character or factor vector.

- B
a character or factor vector.

- nb
a neighbors list e.g. created by

`st_knn()`

or`st_contiguity()`

- nsim
default

`99`

. An integer representing how many simulations to run for calculating the simulated p-values.