correl               package:agricolae               R Documentation

_C_o_r_r_e_l_a_t_i_o_n _C_o_e_f_f_i_c_i_e_n_t

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

     An exact correlation for ties or without ties. Methods of Kendall,
     Spearman and Pearson.

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

     correl(x, y, method = "pearson",alternative="two.sided")

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

       x: Vector 

       y: Vector 

  method: "pearson", "kendall", "spearman" 

alternative: "two.sided", "less", "greater" 

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

      x : Numeric

      y : Numeric

     ...

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

     Felipe de Mendiburu

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

     Numerical Recipes in C. Second Edition.

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

     'correlation'

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

     library(agricolae)
     data(soil)
     attach(soil)
     correl(pH,clay,method="kendall")
     correl(pH,clay,method="spearman")
     correl(pH,clay,method="pearson")

