adjustP2                package:CALIB                R Documentation

_A_d_j_u_s_t _m_o_d_e_l _p_a_r_a_m_e_t_e_r _P_2

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

     Adjust the calibration model parameter P2 according to the
     measured intensities of all clones spotted on the array.

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

     adjustP2(RG, parameter, arrayindex = arrayindex, colorindex = colorindex)

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

      RG: an 'RGList' object.

parameter: a 'ParameterList' object. 

arrayindex: integer vector specifying the index of the arrays of whose 
          the parameter P2 needed to be adjusted. 

colorindex: integer vector specifying which color needed to be
          adjusted.

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

     'RG' is an 'RGList_CALIB' object which contains all the
     experimental data.  'parameter' is the return result of function
     'estimateParameter.' 'arrayindex' is an integer vector. It gives
     the index of the arrays whose P2 is  needed to be adjusted.
     'colorindex' is an integer vector. It gives the color needed to be
     adjusted. '1' means red P2 and '2' means green P2.

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

     It returns a 'ParameterList' object with a adjusted P2 compared to
     the input argument 'parameter'.

_N_o_t_e:

     The user should decide on which array and which color the
     adjustment is needed. Therefore it is important to specify the
     right array index and color index. There is no check on this in
     the function.

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

     Hui Zhao

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

     # load data: RG and parameter:
     data(RG)
     data(parameter)

     # adjust P2
     parameter_new <- adjustP2(RG,parameter,arrayindex=c(1,2),colorindex=c(2,2))

