mcNemar               package:epibasix               R Documentation

_P_a_i_r-_M_a_t_c_h_e_d _A_n_a_l_y_s_i_s _T_o_o_l

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

     This function performs elemenentary pair-matched analysis using
     McNemar's test and computing risk differences.

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

     mcNemar(X, alpha= 0.05, force=FALSE, digits=3)

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

       X: A 2x2 matrix, with disease status (Yes/No) for the exposed
          individual in the columns and disease status (Yes/No) for the
          control individuals in the rows.  Note that for a
          matched-pair analysis, each entry corresponds to a pair of
          subjects.

   alpha: The desired Type I Error Rate for Hypothesis Tests and
          Confidence Intervals

   force: Logical: McNemar's test is typically valid when the number of
          discordant pairs exceeds 30.  The function may be forced to
          work, without regards to this concern with FORCE=TRUE.

  digits: Number of Digits to round calculations

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

     McNemar's OR is computed as b/c.  While standard errors are
     computed using a transformation. The risk difference is computed
     as (b-c)/n.  Note that this technique can be used for cohort
     studies as well as matched trials.

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

       X: The original input matrix.

    ORMc: McNemar's Odds Ratio

ORMC.CIL: Lower Confidence Limit for McNemar's OR

ORMC.CIU: Upper Confidence Limit for McNemar's OR

      rd: Point Estimate of the risk difference

  rd.CIL: Lower Confidence Limit for the risk difference

  rd.CIU: Upper Confidence Limit for the risk difference

     XMc: Value for McNemar's Chi-squared statistic

XMc.p.Value: P-value for the hypothesis test of no association.

   alpha: The desired Type I Error Rate for Hypothesis Tests and
          Confidence Intervals

  digits: Number of Digits to round calculations

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

     Michael Rotondi, mrotondi@uwo.ca

_R_e_f_e_r_e_n_c_e_s:

     Szklo M and Nieto FJ.  Epidemiology: Beyond the Basics, Jones and
     Bartlett: Boston, 2007.

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

     'epi2x2'

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

     ## Not run: 
     Data for matched-cohort study, comparing smokers to non-smokers for the presence
     of lung cancer.
     ## End(Not run)
     X <- cbind(c(15,5), c(19,61));
     summary(mcNemar(X, alpha=0.05, force=TRUE));

