Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Export stata file to r program

    Hello statalist members,
    i am calculating one variable in R program,but i want to use my stata13 data files in R(per year one dataset) , but i dont know why my data is not exported to r program from stata13.actually i want to use thesefile for loop in R, for that very purpose i need stata files, could you please help me out how to export(import) dtata to r?
    best regards.

  • #2
    Hello stata list members,
    sorry to repeat my question, could you please guide me,how to import stata 13 file to r programing, i found package readstata13, package author Jan Marvin Garbuszus , but i dont know how can i use.it , i will be very thankful if Someone help me in solving this issue,
    although i searched different sites but i did not got the solution,.
    thank you in advance

    Comment


    • #3
      rioweb may be useful:

      https://gallery.shinyapps.io/rioweb/

      But, it is not necessary since R can usually read Stata files directly, e.g. my R files start something like

      library(haven)
      library(lavaan)
      rtest.datafile <- read_dta("C:/Dropbox/Testprogs/lav_rtest.dta")

      -------------------------------------------
      Richard Williams, Notre Dame Dept of Sociology
      Stata Version: 17.0 MP (2 processor)

      EMAIL: [email protected]
      WWW: https://www3.nd.edu/~rwilliam

      Comment


      • #4
        For exporting data from Stata to R see -save2rda- here:
        http://www.radyakin.org/transfer/save2rda/

        Comment


        • #5
          Sergiy RadyakinRichard Williams thank you so.much my problem is solved out.thank you again for helping us in our research work.

          Comment

          Working...
          X