cor2cov                package:MBESS                R Documentation

_C_o_r_r_e_l_a_t_i_o_n _M_a_t_r_i_x _t_o _C_o_v_a_r_i_a_n_c_e _M_a_t_r_i_x _C_o_n_v_e_r_s_i_o_n

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

     Function to convert a correlation matrix to a covariance matrix.

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

     cor2cov(cor.mat, sd)

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

 cor.mat: the correlation matrix to be converted 

      sd: a vector that contains the standard deviations of the
          variables in the correlation matrix 

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

     The correlation matrix to convert can be either symmetric or
     triangular. The covariance matrix returned is always a symmetric
     matrix.

_N_o_t_e:

     The correlation matrix input should be a square matrix, and the
     length of 'sd' should be equal to the number of variables in the
     correlation matrix (i.e., the number of rows/columns).

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

     Ken Kelley (Indiana University; KKIII@Indiana.Edu), Keke Lai

