matchTab               package:epicalc               R Documentation

_M_a_t_c_h_e_d _t_a_b_u_l_a_t_i_o_n

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

     Tabulation of a matched case control study

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

     matchTab (case, exposed, strata)

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

    case: Outcome variables where 0 = control and 1 = case

 exposed: Exposure variable where 0 = non-exposed and 1 = exposed

  strata: Number identification for each matched set

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

     Tabulation for an unmatched case control study is based on
     individual records classified by outcome and exposure variables.

     Matched tabulation is tallying based on each matched set. The
     simplest form is McNemar's table where only one case is matched
     with one control. 'matchTab' can handle 1:m matching where m can
     vary from 1 to m. A MLE method is then used to compute the
     conditional odds ratio.

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

     Virasakdi Chongsuvivatwong <cvirasak@medicine.psu.ac.th>

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

     'table', 'cc' and 'clogit'

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

     attach(infert)

     ## Not run:

     # matchTab(case, induced, stratum)
     # Tabulation successful but OR not computed
     # because 'induced' is not binary

     ## End(Not run)

     ia <- induced > 0
     matchTab(case, ia, stratum)
     detach(infert)

     # See also
     library(survival)
     clogit(case ~ ia + strata(stratum), data=infert)

