checkRandomness {beadarray} | R Documentation

## Test for random distribution of co-ordinates

### Description

Function tests to see if a set of co-ordinates are randomly positioned around an array. This can be used to test the distribution of beads of the same type on the same array or outliers for an array.

### Usage

    checkRandomness(BLData, array, coords)

### Arguments

`BLData` | BeadLevelList containing bead-level data
`array` | numeric value specifying the array we want to check the co-ordinates on
`coords` | n by 2 vector where first column is list of x co-ordinates and second column is list of y co-ordinates

### Details

The array is split into 8 sections and a chi-squared goodness of fit test is used to assess if the co-ordinates are equally spread among the 8 sections. The chi-squared statistic is defined such that a higher value indicates a less random distribution.

### Value

Numeric value giving the result of the chi-squared test.

### Author(s)

Mark Dunning

### See Also

`getProbeCoords`

### Examples

    data(BLData)
    co=getProbeCoords(BLData, 2, 1)
    checkRandomness(BLData, 1, co)

[Package beadarray version 1.0.0 Index]