IDEAS home Printed from
   My bibliography  Save this paper

SGL: Stata Graph Library for network analysis


  • 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.

Suggested Citation

  • Hirotaka Miura, 2011. "SGL: Stata Graph Library for network analysis," CHI11 Stata Conference 7, Stata Users Group.
  • Handle: RePEc:boc:chic11:7

    Download full text from publisher

    File URL:
    Download Restriction: no

    File URL:
    Download Restriction: no

    References listed on IDEAS

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


    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.

    Cited by:

    1. Hale, Galina, 2012. "Bank relationships, business cycles, and financial crises," Journal of International Economics, Elsevier, vol. 88(2), pages 312-325.
    2. Sufrauj, Shamnaaz & Schiavo, Stefano & Riccaboni, Massimo, 2014. "The Structure and Growth of World Trade, and the Role of Europe in the Global Economy," MPRA Paper 54122, University Library of Munich, Germany.

    More about this item

    NEP fields

    This paper has been announced in the following NEP Reports:


    Access and download statistics


    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. 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). General contact details of provider: .

    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 CitEc recognized a reference but did not link an item in RePEc 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 RePEc Author Service 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.

    IDEAS is a RePEc service hosted by the Research Division of the Federal Reserve Bank of St. Louis . RePEc uses bibliographic data supplied by the respective publishers.