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)):
![Click image for larger version
Name: sq.png
Views: 1
Size: 3.8 KB
ID: 1346601](filedata/fetch?id=1346601&d=1466753007&type=full)
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:
![Click image for larger version
Name: s.png
Views: 1
Size: 2.5 KB
ID: 1346602](filedata/fetch?id=1346602&d=1466753129&type=full)
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