oddsratio                package:vcd                R Documentation

_O_d_d_s _R_a_t_i_o_s

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

     Computes (log) odds ratios and their asymtotic standard errors for
     (possibly) stratified data.

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

     oddsratio(x, stratum = NULL, log = TRUE, conf.level = 0.95)

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

       x: a 2 x 2 x ... table.

 stratum: vector of strata dimensions.

     log: if 'FALSE', ordinary odds ratios are computed

conf.level: confidence level used for confidence intervals.

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

     An object of class 'logoddratio', which is simply a vector of
     (log) odds ratios with dimensionality depending on 'stratum',
     along with the following attributes: 

     ASE: a vector with the asymptotic standard errors

lwr, upr: a vector with lower/upper confidence bounds

       Z: test statistic for significance tests (only computed for log
          odds ratios: simply the standardized log odds ratio, which
          follows an asymptotic normal distribution.

       P: p-value for this test.

     log: logical value indicating if log odds ratios or common odds
          ratios are computed.

_N_o_t_e:

     The 'summary' method prints the standard errors.

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

     David Meyer
      david.meyer@ci.tuwien.ac.at

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

     M. Friendly (2000), _Visualizing Categorical Data_. SAS Institute,
     Cary, NC.

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

     'plot.oddsratio'

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

     data(CoalMiners)
     summary(oddsratio(CoalMiners))

