Announcement

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

  • showing the significant star in the output of t-test using asdoc

    Hi,
    I am using asdoc command for the exporting the output and I have a question. I wonder how can we insert significant star on t-value in the exported output.

    below are the code and example:

    code:

    . asdoc tabstat price mpg rep78 headroom, by(foreign) stat(N mean sd max min tstat)
    foreign



    example:

    . dataex price mpg rep78 headroom

    ----------------------- copy starting from the next line -----------------------
    Code:
    * Example generated by -dataex-. To install: ssc install dataex
    clear
    input int(price mpg rep78) float headroom
     4099 22 3 2.5
     4749 17 3   3
     3799 22 .   3
     4816 20 3 4.5
     7827 15 4   4
     5788 18 3   4
     4453 26 .   3
     5189 20 3   2
    10372 16 3 3.5
     4082 19 3 3.5
    11385 14 3   4
    14500 14 2 3.5
    15906 21 3   3
     3299 29 3 2.5
     5705 16 4   4
     4504 22 3 3.5
     5104 22 2   2
     3667 24 2   2
     3955 19 3 3.5
     3984 30 5   2
     4010 18 2   4
     5886 16 2   4
     6342 17 2 4.5
     4389 28 4 1.5
     4187 21 3   2
    11497 12 3 3.5
    13594 12 3 2.5
    13466 14 3 3.5
     3829 22 4   3
     5379 14 4 3.5
     6165 15 3 3.5
     4516 18 3   3
     6303 14 4   3
     3291 20 3 3.5
     8814 21 4   4
     5172 19 3   2
     4733 19 3 4.5
     4890 18 4   4
     4181 19 3 4.5
     4195 24 1   2
    10371 16 3 3.5
     4647 28 3   2
     4425 34 5 2.5
     4482 25 3   4
     6486 26 . 1.5
     4060 18 2   5
     5798 18 4   4
     4934 18 1 1.5
     5222 19 3   2
     4723 19 3 3.5
     4424 19 . 3.5
     4172 24 2   2
     9690 17 5   3
     6295 23 3 2.5
     9735 25 4 2.5
     6229 23 4 1.5
     4589 35 5   2
     5079 24 4 2.5
     8129 21 4 2.5
     4296 21 3 2.5
     5799 25 5   3
     4499 28 4 2.5
     3995 30 4 3.5
    12990 14 . 3.5
     3895 26 3   3
     3798 35 5 2.5
     5899 18 5 2.5
     3748 31 5   3
     5719 18 5   2
     7140 23 4 2.5
     5397 41 5   3
     4697 25 4   3
     6850 25 4   2
    11995 17 5 2.5
    end
    ------------------ copy up to and including the previous line ------------------

    Listed 74 out of 74 observations

    .
Working...
X