Announcement

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

  • Help with table and export to word file

    Hi,

    I'm having some trouble to make a basic table. I don't want any summary statistics, just make a table of my data and export it to a word file. Mi data looks like this:

    Code:
    * Example generated by -dataex-. To install: ssc install dataex
    clear
    input str18 Country float(HLRatio HLriskRatio HLbetwRatio)
    "ARM" 1.0128051  -.016672801 .0038676674
    "AUT" 1.0144342   -.01792289  .003488679
    "AZE" 1.0691833    -.0828044  .013621075
    "BEL" 1.0067652  -.008159835 .0013946358
    "BGR" 1.0330919   -.04484835  .011756393
    "BLR"  1.006329  -.009062406  .002733322
    "BOL" 1.2368478   -.26890212   .03205437
    "BRA" 1.0055573  -.007241867 .0016845264
    "COL"  1.003122   -.00405714 .0009351086
    "CRI" 1.0252912   -.03228598  .006994774
    "CYP"  .9379027    .08551086  -.02341358
    "CZE" 1.0032717  -.004336667 .0010649675
    "DNK" 1.0063478  -.007393049 .0010453222
    "DOM" 1.0837909   -.11630929   .03251834
    end
    I just want to make a table similar to the following and export it to word:
    HLRatio HLriskRatio HLbetwRatio
    ARM 1.0128051 -.016672801 .0038676674
    AUT 1.0144342 -.01792289 .003488679

    Any suggestions ?

    Thank you very much!

  • #2
    I' ve just done the first with:

    Code:
    list Country HLcertain_HLtotal_Ratio HLriskwithin_HLtotal_Ratio HLriskbetween_HLtotal_Ratio, noobs divider separator(1)
    Any idea how can I export such table to a word file?

    Thank you very much!

    Comment


    • #3
      You don't tell us what version of Stata you are using. Stata 15 has a number of commands that work with Microsoft Office products including putdocx.
      Stata/MP 14.1 (64-bit x86-64)
      Revision 19 May 2016
      Win 8.1

      Comment


      • #4
        Carole,

        I'm using Stata 14.1 for Mac. I could solve it with:

        Code:
         
         ssc install asdoc, replace
        If you know another way you are welcome to enlight me. Thank you!

        Comment

        Working...
        X