Permutation Test for cross-type nearest neighbor distances

testColoc(
  im1,
  im2,
  hres = 0.102381,
  vres = 0.25,
  B = 999,
  alternative = "less",
  returnSample = TRUE,
  ...
)

Arguments

im1

image stack as returned by preprocessing

im2

image stack as returned by preprocessing

hres

horizontal resolution of the stacks

vres

vertical resolution of the stacks

B

number of permutations to generate

alternative

alternative hypothesis ("less" to test H0:Colocalization )

returnSample

return sampled null distribution

...

additional arguments for papply

Value

a list with the p.value, the observed weighted mean of the cNN-distances

Author

Fabian Scheipl