Announcement

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

  • Exporting sts list data?

    Hi,

    Does anyone know how to export sts list data using putdocx or other means -- without having to either manually copy it or create a whole new dataset? I'm trying to automate this process.

    For example:
    sts list, at(1 12 60 120) by(variable)

    Thanks

  • #2
    Does anyone know how to export sts list data using putdocx or other means -- without having to either manually copy it or create a whole new dataset?
    Why are you averse to creating a new data set for this purpose? If you were willing to do that, you could simply use the -saving()- option in your -sts list- command (see -help sts list- for details) and then export that data set directly.

    Comment


    • #3
      Using Clyde Schechter suggestion, here is an example of exporting sts list with asdoc to Word
      Code:
      ssc install asdoc
      webuse stan3
      sts list, saving(td)
      use td, clear
      asdoc list, replace
      Click image for larger version

Name:	Capture.JPG
Views:	1
Size:	154.5 KB
ID:	1520276


      For those who are not yet familiar with asdoc, asdoc can be downloaded from SSC and can be used with almost all Stata commands. Here is a short blog post that shows how asdoc can be used with any Stata command http://fintechprofessor.com/2018/02/...basic-example/. You can also watch several YouTube videos that show the use of asdoc https://www.youtube.com/watch?v=zdI6...LwodAk2oqLYhr-

      Code:
      * For installation of the stable version 
      ssc install asdoc
      
      * For installation of the new beta version
      net install asdoc, from(http://fintechprofessor.com) replace
      help asdoc
      Regards
      --------------------------------------------------
      Attaullah Shah, PhD.
      Professor of Finance, Institute of Management Sciences Peshawar, Pakistan
      FinTechProfessor.com
      https://asdocx.com
      Check out my asdoc program, which sends outputs to MS Word.
      For more flexibility, consider using asdocx which can send Stata outputs to MS Word, Excel, LaTeX, or HTML.

      Comment

      Working...
      X