getDensityMatrix             package:nem             R Documentation

_C_a_l_c_u_l_a_t_e _d_e_n_s_i_t_y _m_a_t_r_i_x _f_r_o_m _r_a_w _p-_v_a_l_u_e _m_a_t_r_i_x

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

     Fit a 3 component BUM model to each column of a raw p-value
     matrix.

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

             getDensityMatrix(Porig, dirname=NULL, startab=c(0.3,10), startlam=c(0.6,0.1,0.3), tol=1e-4)

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

   Porig: matrix of raw p-values

 dirname: name of a directory to save histograms and QQ-plots to. If
          dirname=NULL, then the plots are made to the screen, and
          after each fit the user is asked to press a key in order to
          continue.

 startab: start values for alpha and beta parameter

startlam: start values for mixing coefficients

     tol: convergence tolerance: If the absolute likelihood ratio -1
          becomes smaller than this value, then the EM algorithm is
          supposed to be converged.

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

     The BUM density model consists of 3 components: $f(x) = lambda_1 +
     lambda_2*dbeta(x,alpha,1) + lambda_3*dbeta(x,1,beta)$. The mixing
     coefficients and the parameters alpha and beta are fitted together
     via an EM algorithm.

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

     log-density matrix of same dimensions as Porig: The log-densities
     can be interpreted as log signal-to-noise ratios. A value > 0
     means higher signal than noise, and a value < 0 a higher noise
     than signal.

_N_o_t_e:

     Note the difference to the previous package version: the
     LOG-density is returned now!

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

     Holger Froehlich

