mhor                 package:epicalc                 R Documentation

_M_a_n_t_e_l-_H_a_e_n_s_z_e_l _o_d_d_s _r_a_t_i_o

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

     Mantel-Haenszel odds ratio calculation and graphing from a
     stratified case-control study

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

     mhor(..., mhtable = NULL, decimal=2, graph = TRUE, design = "cohort") 

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

     ...: Three variables viz. 'outcome', 'exposure' and
          'stratification'.

 mhtable: a 2-by-2-by-s table, where s (strata) is more than one

 decimal: number of decimal places displayed

   graph: If TRUE (default), produces an odds ratio plot

  design: Specification for graph; can be "case
          control","case-control", "cohort" or "prospective"

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

     'mhor' computes stratum-specific odds ratios and 95 percent
     confidence intervals and the Mantel-Haenszel odds ratio and
     chi-squared test is given as well as the homogeneity test. A
     stratified odds ratio graph is displayed.

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

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

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

     'fisher.test', 'chisq.test'

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

     data(Oswego)
     use(Oswego)
     cc(ill, chocolate)
     mhor(ill, chocolate, sex)

     mht1 <- table(ill, chocolate, sex)
     dim(mht1)
     mhor(mhtable=mht1) # same results

