veclipos               package:micEcon               R Documentation

_P_o_s_i_t_i_o_n _i_n _a _v_e_c_t_o_r _o_f _l_i_n_e_a_r _i_n_d_e_p_e_n_d_e_n_t _v_a_l_u_e_s

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

     Returns the position of the ['i','j']th element of a symmetric 'n'
     x 'n' matrix that this element has in a vector of the linear
     independent values of the matrix.

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

     veclipos( i, j, n )

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

       i: row of the element in the matrix.

       j: column of the element in the matrix.

       n: dimension of the matrix.

_N_o_t_e:

     A symmetric 'n' x 'n' matrix has n*(n+1)/2 independent values.
      The function is:
     n*(n-1)/2-((n-min(i,j))*(n-min(i,j)+1)/2)+max(i,j)

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

     Arne Henningsen ahenningsen@agric-econ.uni-kiel.de

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

     'vecli', 'vecli2m'.

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

        veclipos( 1, 2, 3 )  # returns: 2

