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)

