Wishart               package:MCMCpack               R Documentation

_T_h_e _W_i_s_h_a_r_t _D_i_s_t_r_i_b_u_t_i_o_n

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

     Density function and random generation from the Wishart
     distribution.

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

        dwish(W, v, S)
        rwish(v, S)

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

       W: Positive definite matrix W (p x p).

       v: Degrees of freedom (scalar).

       S: Inverse scale matrix (p x p).

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

     The mean of a Wishart random variable with 'v' degrees of freedom
     and inverse scale matrix 'S' is vS.

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

     'dwish' evaluates the density at positive definite matrix W.
     'rwish' generates one random draw from the distribution.

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

     density <- dwish(matrix(c(2,-.3,-.3,4),2,2), 3, matrix(c(1,.3,.3,1),2,2))
     draw <- rwish(3, matrix(c(1,.3,.3,1),2,2))

