***** To join INSNA, visit http://www.insna.org *****
***** To join INSNA, visit http://www.insna.org *****Hi list,_____________________________________________________________________ SOCNET is a service of INSNA, the professional association for social network researchers (http://www.insna.org). To unsubscribe, send an email message to [log in to unmask] containing the line UNSUBSCRIBE SOCNET in the body of the message.
I am trying to replicate the calculation procedure to obtain Pearson product-moment correlation coefficients as a measure of structural equivalence, but I can't get it to work! I am using the formula given in Wasserman/Faust (1994) on page 368 - pseudocode-translated it looks like this (but I think the formula on W/F94:368 is easier to read...):
r(i,j)=sum( (x(k,i)-xm(*,i))*(x(k,j)-xm(*,j)) ) + sum( (x(i,k)-xm(i,*))*(x(j,k)-xm(j,*)) )
/ ( sqrt( sum( (x(k,i)-xm(*,i))^2) + sum( (x(i,k)-xm(i,*))^2) ) * sqrt( sum( (x(k,j)-xm(*,j))^2) + sum( (x(j,k)-xm(j,*))^2) ) )
(...where xm(*,i) is the mean value of column i, xm(i,*) is the mean value of row i, excluding diagonals.)
I have tested this with the Krackhardt advice relation data, even trying with manual calculation (pen, paper and calculator!), but I simply cannot replicate the results shown in W/F94:373, and the results that Ucinet yields.
Is there any open-source code (in any language) available for calculating Pearson product-moment correlation coefficients for sociomatrices? Or can anyone see directly what I've done wrong in the expression above? (I doubt that there is something wrong with formula (9.3) in Wasserman/Faust 1994:368, but perhaps there are some implicit brackets that I've missed?)
Dr Carl Nordlund
Human Ecology Division, Lund university
-- Prof. Ilan Talmud, Ph.D. Head, Economic Sociology, Department of Sociology and Anthropology, University of Haifa Phones: 972-4-8240992 (office direct) 972-4-8240995 / 8249505 (secretaries) (cell) 972-522-220914 Fax: 972-4-8240819 http://soc.haifa.ac.il/~talmud/