assocstats                package:vcd                R Documentation

_A_s_s_o_c_i_a_t_i_o_n _S_t_a_t_i_s_t_i_c_s

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

     Computes the Pearson chi-Squared test, the Likelihood Ratio
     chi-Squared test, the phi coefficient, the contingency coefficient
     and Cramer's V.

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

     assocstats(x)

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

       x: an r x c table.

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

     A list with components: 

chisq.tests: a 2 x 3 table with the chi-squared statistics.

     phi: The phi coefficient.

    cont: The contingency coefficient.

  cramer: Cramer's V.

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

     David Meyer David.Meyer@R-project.org

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

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

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

     data(Arthritis)
     tab <- xtabs(~Improved + Treatment, data = Arthritis)
     summary(assocstats(tab))

