Dear Mata users,
I have a square Matrix Q let's say :
I'd like to obtain the scalar given by the formula (fagiolo, 2006; fagiolo et al, 2010 (p.28)):
where qij are the elements of Q, and 0<qij<1 (as given by runiform(), except that the diagonal elements are all set to one.).
Later I should get:
This second step is easier, the result is supposed to be bounded between 0 and 1 and measure the degree of symmetry of the initial matrix Q.
Any thoughts for the first step?
thanks,
Charlie
I have a square Matrix Q let's say :
Code:
mata : Q=runiform(3,3)
where qij are the elements of Q, and 0<qij<1 (as given by runiform(), except that the diagonal elements are all set to one.).
Later I should get:
This second step is easier, the result is supposed to be bounded between 0 and 1 and measure the degree of symmetry of the initial matrix Q.
Any thoughts for the first step?
thanks,
Charlie
Comment