checkRandomness          package:beadarray          R Documentation

_T_e_s_t _f_o_r _r_a_n_d_o_m _d_i_s_t_r_i_b_u_t_i_o_n _o_f _c_o-_o_r_d_i_n_a_t_e_s

_D_e_s_c_r_i_p_t_i_o_n:

     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.

_U_s_a_g_e:

     checkRandomness(BLData, array, coords)

_A_r_g_u_m_e_n_t_s:

  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

_D_e_t_a_i_l_s:

     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.

_V_a_l_u_e:

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

_A_u_t_h_o_r(_s):

     Mark Dunning

_S_e_e _A_l_s_o:

     'getProbeCoords'

_E_x_a_m_p_l_e_s:

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

