05/09/2011: This program has been superseded by SGL 1.1.2. : Stata Graph Library (SGL) version 1.1.1. Under review at the 03/12/2011 Stata Journal. Except for command name change (to better reflect ongoing project), program identical to NETGEN 1.1.3. R/Matlab routines used to double check output now included as part of the upload - please refer to 'test' folder in the below zip attachment. Different file types are as follows (please note that 'graph' and 'network' are used interchangeably):- sgltest1 series: Tests SGL on undirected unweighted graphs.
- sgltest1: Tests distance matrix, path matrix, betweenness centrality, clustering coefficients, and eigenvector centrality.
- sgltest1a1: Tests Katz-Bonacich centrality.
- sgltest1a2: Tests Katz-Bonacich centrality with specified exogenous beta vector.
- sgltest1b1: Similar to sgltest1 but uses edge list in Mata.
- sgltest2 series: Tests SGL on directed unweighted graphs.
- sgltest3 series: Tests SGL on undirected weighted graphs.
- sgltest4 series: Tests SGL on directed weighted graphs.
Test programs are written for debugging purposes. Users should perhaps do the opposite, generating matrices/measures in Stata then running R/Matlab, to double check their own results. The question is, then, why even use Stata if R/Matlab is going to be used anyways? Since all programs are user-written, it's best to double check each other, and also users may find it easier (but understandably still tedious) to customize Mata code (e.g. SGLX) rather than customizing underlying code used in other programs. |