IDEAS home Printed from
MyIDEAS: Log in (now much improved!) to save this paper

SGL: Stata Graph Library for network analysis

Listed author(s):
  • Hirotaka Miura


    (Federal Reserve Bank of San Francisco)

Network analysis is becoming a popular field of research. Though sophisticated packages exist for analyzing networks, such as sna, igraph, and RBGL packages developed for R and MatlabBGL implemented in Matlab, similar programs have yet to be written for Stata. I attempt to fill this void by designing the Stata Graph Library (SGL) in Mata which consists of functions that construct network centrality measures, metrics, and matrices. SGL retrieves relational data from an edge list defined by existing Stata variables or from matrices stored in Mata. SGL is built to work within Stata version 11.1 and is intended for both directed and undirected networks, either of which can be weighted by positive values or unweighted. This paper provides a brief overview of concepts related to network analysis and introduces Stata Graph Library functions that generate matrix representations, centrality measures, and clustering coefficients for directed or undirected networks with or without positive weights.

If you experience problems downloading a file, check if you have the proper application to view it first. In case of further problems read the IDEAS help page. Note that these files are not on the IDEAS site. Please be patient as the files may be large.

File URL:
Download Restriction: no

File URL:
Download Restriction: no

Paper provided by Stata Users Group in its series CHI11 Stata Conference with number 7.

in new window

Date of creation: 20 Jul 2011
Handle: RePEc:boc:chic11:7
Contact details of provider: Web page:

More information through EDIRC

References listed on IDEAS
Please report citation or reference errors to , or , if you are the registered author of the cited work, log in to your RePEc Author Service profile, click on "citations" and make appropriate adjustments.:

in new window

  1. Leo Katz, 1953. "A new status index derived from sociometric analysis," Psychometrika, Springer;The Psychometric Society, vol. 18(1), pages 39-43, March.
  2. Rense Corten, 2011. "Visualization of social networks in Stata using multidimensional scaling," Stata Journal, StataCorp LP, vol. 11(1), pages 52-63, March.
Full references (including those not matched with items on IDEAS)

This item is not listed on Wikipedia, on a reading list or among the top items on IDEAS.

When requesting a correction, please mention this item's handle: RePEc:boc:chic11:7. See general information about how to correct material in RePEc.

For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: (Christopher F Baum)

If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

If references are entirely missing, you can add them using this form.

If the full references list an item that is present in RePEc, but the system did not link to it, you can help with this form.

If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your profile, as there may be some citations waiting for confirmation.

Please note that corrections may take a couple of weeks to filter through the various RePEc services.

This information is provided to you by IDEAS at the Research Division of the Federal Reserve Bank of St. Louis using RePEc data.