bootstrapT            package:maigesPack            R Documentation

_C_a_l_c_u_l_a_t_e _b_o_o_t_s_t_r_a_p _p-_v_a_l_u_e_s _f_o_r _t _s_t_a_t_i_s_t_i_c_s

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

     This function takes a numerical matrix and column indexes for two
     groups to calculate bootstrapped (by re-sampling) p-values
     comparing the equality of means from the two groups.

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

     bootstrapT(x, k=20000, obs1, obs2, ...)

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

       x: numerical matrix to be bootstrapped. The t statistics is
          calculated by row using the column indexes given by 'obs1'
          and 'obs2' for the two groups tested.

       k: number of bootstrap re-samplings to be done. Defaults to
          20000.

    obs1: logical or numerical column indexes of the first group.

    obs2: logical or numerical column indexes of the second group.

     ...: additional parameters for 't.test' function from package
          _stats_.

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

     The result of this function is a numerical matrix with number of
     rows given by the rows of the argument 'x' and 3 columns. The
     first column contain the difference of means between the two
     groups, the second one contain the original t statistic and the
     last one gives the bootstrapped p-values, for all rows of the
     matrix 'x'.

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

     Gustavo H. Esteves <gesteves@vision.ime.usp.br>

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

     't.test' from package _stats_.

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

     z <- matrix(rnorm(100, 0, 1), 4, 25)
     bootstrapT(z, k=100, obs1=1:14, obs2=15:25)

