nn_comparison_permutation_test: Calculate a permutation test result for nearest neighbors to...

Description Usage Arguments Value Examples

Description

Calculate a permutation test result for nearest neighbors to say for each sample to see if the neighbor distance something seen under the null assumption

Usage

1
2
3
4
5
6
7
8
9
nn_comparison_permutation_test(x, markerA, markerB, reference,
  from_reference = TRUE, permutations = 20, subset = NULL)


  ## S4 method for signature 
## 'ImageSet,character,character,character,logical,numeric,character'
nn_comparison_permutation_test(x,
  markerA, markerB, reference, from_reference = TRUE, permutations = 20,
  subset = NULL)

Arguments

x

IrisSpatialFeatures ImageSet object that has had extract nearest neighbors run

markerA

First marker

markerB

Second marker

reference

Reference marker

from_reference

If true calculate distance from the reference to the markers by NN

permutations

Set to 100 by default

Value

data.frame of markers and distances

Examples

1
2
3
#loading pre-read dataset
dataset <- IrisSpatialFeatures_data
nn_comparison_permutation_test(dataset)

gusef/IrisSpatialFeatures documentation built on May 6, 2019, 9:50 p.m.