IDEAS home Printed from
   My bibliography  Save this article

Seamless interactive language interfacing between R and Stata


  • E.F. Haghish

    (University of Göttingen)


In this article, I propose a new approach to language interfacing for statistical software by allowing automatic interprocess communication between R and Stata. I advocate interactive language interfacing in statistical software by automatizing data communication. I introduce the rcall package and provide examples of how the R language can be used interactively within Stata or embed- ded into Stata programs using the proposed approach to interfacing. Moreover, I discuss the pros and cons of object synchronization in language interfacing.

Suggested Citation

  • E.F. Haghish, 2019. "Seamless interactive language interfacing between R and Stata," Stata Journal, StataCorp LP, vol. 19(1), pages 61-82, March.
  • Handle: RePEc:tsj:stataj:v:19:y:2019:i:1:p:61-82
    DOI: 10.1177/1536867X19830891
    Note: to access software from within Stata, net describe

    Download full text from publisher

    File URL:
    Download Restriction: no

    File URL:
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item


    Blog mentions

    As found by, the blog aggregator for Economics research:
    1. Rita Faria’s journal round-up for 29th July 2019
      by Rita Faria in The Academic Health Economists' Blog on 2019-07-29 11:00:29


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

    Cited by:

    1. Christian B. Hansen & Mark E. Schaffer & Thomas Wiemann & Achim Ahrens, 2022. "ddml: Double/debiased machine learning in Stata," Swiss Stata Conference 2022 02, Stata Users Group.
    2. Anand, Amitabh & Vessal, Saeedeh Rezeaee & Rathi, Kishore & Ameen, Nisreen, 2021. "Show me your mobile and I will tell you who you are: Forecasting consumer compassion and altruism behaviour through smartphone type and usage," Journal of Retailing and Consumer Services, Elsevier, vol. 63(C).


    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:tsj:stataj:v:19:y:2019:i:1:p:61-82. See general information about how to correct material in RePEc.

    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.

    We have no bibliographic references for this item. You can help adding them by using 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.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Christopher F. Baum or Lisa Gilmore (email available below). General contact details of provider: .

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

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.