power.fisher.test          package:statmod          R Documentation

_P_o_w_e_r _o_f _F_i_s_h_e_r'_s _E_x_a_c_t _T_e_s_t _f_o_r _C_o_m_p_a_r_i_n_g _P_r_o_p_o_r_t_i_o_n_s

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

     Calculate by simulation the power of Fisher's exact test for
     comparing two proportions given two margin counts.

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

     power.fisher.test(p1, p2, n1, n2, alpha=0.05, nsim=100)

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

      p1: first proportion to be compared

      p2: second proportion to be compared

      n1: first sample size

      n2: second sample size

   alpha: significance level

    nsim: number of simulated data sets

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

     Computes the power of Fisher's exact test for testing the null
     hypothesis that 'p1' equals 'p2' against the alternative that they
     are not equal.

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

     Estimated power of the test

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

     Gordon Smyth

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

     'fisher.test', 'power.t.test'

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

     power.fisher.test(0.5,0.9,20,20) # 70

