co_table                 package:vcd                 R Documentation

_C_o_m_p_u_t_e _C_o_n_d_i_t_i_o_n_a_l _T_a_b_l_e_s

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

     For a contingency table in array form, compute a list of
     conditional tables given some margins.

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

     co_table(x, margin, collapse = ".")

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

       x: a contingency table in array form.

  margin: margin index(es) or corresponding name(s) of the conditioning
          variables.

collapse: character used when collapsing level names (if more than 1
          'margin' is specified).

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

     This is essentially an interface to '"["' which is more convenient
     for arrays of arbitrary dimension.

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

     A list of the resulting conditional tables.

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

     Achim Zeileis Achim.Zeileis@R-project.org

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

     data(HairEyeColor)
     co_table(HairEyeColor, 1)
     co_table(HairEyeColor, c("Hair", "Eye"))
     co_table(HairEyeColor, 1:2, collapse = "")

