table2d_summary             package:vcd             R Documentation

_S_u_m_m_a_r_y _o_f _a _2-_w_a_y _T_a_b_l_e

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

     Prints a 2-way contingency table along with percentages, marginal,
     and conditional distributions.

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

     table2d_summary(object, margins = TRUE, percentages = FALSE,
       conditionals = c("none", "row", "column"), ...)

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

  object: a r x c-contingency table

 margins: if 'TRUE', marginal distributions are computed.

percentages: if 'TRUE', relative frequencies are computed.

conditionals: if not '"none"', the conditional distributions, given the
          row/column factor, are computed.

     ...: currently not used.

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

     Returns invisibly a r x c x k table, k depending on the amount of
     choices (at most 3).

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

     David Meyer David.Meyer@R-project.org

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

     'mar_table', 'prop.table', 'independence_table'

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

     data(UCBAdmissions)
     table2d_summary(margin.table(UCBAdmissions, 1:2))

