Announcement

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

  • Exporting time series data to excel

    I've always used the outreg2 command to export cross-sectional data to excl. When I try to export my time series data it shows up in text formal instead of excel. My command was:
    Code:
    outreg2 using regresults, replace excel dec(3)
    Thank you.

  • #2
    I don't think you've exported any sort of data to Excel using outreg2 - it exports regression results.

    Comment


    • #3
      I'm sorry staring at my computer screen too much today. I meant to say results.

      Comment


      • #4
        When I ran your outreg2 command, it created two files in my working directory - regresults.txt and regresults.xml. When I use Excel to open regresults.xml I see a nicely-formatted results table.

        Comment


        • #5
          It must be my computer. When I opened the .xml it actually opened a tab to the internet with some odd looking code. I just copied my table from notepad. Thank you for your response.

          Comment


          • #6
            I think you missed the inadvertent subtlety of my wording "use Excel to open regresults.xml" by which I meant "from the Excel File menu, select Open, and in the dialog box that appears, locate and select the regresults.xml file, then click the Open button."

            XML is a very general-purpose format so it is not surprising that if you clicked on the file your computer used some app other than Excel as the default with which to open it.

            On my Mac, in the Finder I can locate regresults.xml and right-click on it, and in the pop-up contextual menu select Open In ... and from the list of applications, select Microsoft Excel.
            Last edited by William Lisowski; 28 Apr 2019, 10:09.

            Comment

            Working...
            X