Announcement

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

  • save dataset solutions

    Hello,
    I imported a dataset from excel to Stata, and I launched some commands mainly working on the format displayed in the data. Then since I am working with panel data, I use the reshape long command to make the data in a long format for future analysis. My question:
    What is the best way to save a dataset on Stata in such a way that I can easily work again on that after I close the software? Do you suggest I can simply copy and paste the data in a long format on excel?
    Hop to be clear. Thanks a lot to everybody.
    I truly appreciate your help.
    Regards

  • #2
    See the output of
    Code:
    help save
    help use
    for information on the commands used to save Stata datasets to disk and to read it back in.

    Or, from Stata's File menu, chose Save to save your dataset to disk, and Open to read your dataset in from disk.

    Comment


    • #3
      Additionally, If you want to export the data to Excel or CSV file, the following codes might help

      Code:
      export excel using "data1.xlsx"
      outsheet using "data1.csv"

      Comment


      • #4
        Thanks to everybody for the help and support

        Comment

        Working...
        X