aggregateFun              package:DEDS              R Documentation

_A_g_g_r_e_g_a_t_e _S_t_a_t_i_s_t_i_c_a_l _F_u_n_c_t_i_o_n_s _f_o_r _D_E_D_S

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

     This function takes statistic functions and  creates a function
     that takes a matrix as a single argument. The statisic functions
     are bound in the environment of the returned function and are
     applied sequentially to the argument of the returned function.

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

     aggregateFun(...)

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

     ...: Functions of various statistics, could be in a list. 

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

     The function takes several statistics functions or a list of these
     functions and returns a function (F) with bindings to the input
     statistics functions. F takes a data matrix as its single
     argument, and apply the bound statistical functions sequentially
     to the data matrix.

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

     It returns a function that takes a matrix as its single argument.
     The function returns a matrix of statistics, with m rows
     correspondign to variables (hypotheses) and n columns
     corresponding to specified statistics.

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

     Yuanyuan Xiao, yxiao@itsa.ucsf.edu, 
      Jean Yee Hwa Yang, jean@biostat.ucsf.edu.

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

     'comp.t', 'comp.FC', 'comp.F', 'comp.SAM', 'comp.modt',
     'comp.modF', 'comp.B'

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

     X <- matrix(rnorm(100, 0, 1), nc=10)
     L <- rep(0:1,c(5,5))
     t.fun <- comp.t(L)
     fc.fun <- comp.FC(L)
     sam.fun <- comp.SAM(L)
     ffun <- aggregateFun(list(t.fun, fc.fun, sam.fun))
     stats <- ffun(X)

