Announcement

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

  • Summary statistics "asdoc"

    Dear Stata Users,

    I am trying to obtain a table for summary statistics where the standard errors are in parenthesis just under the mean. I am using this code:
    Code:
    by market: asdoc  sum exdumm exit_dum lnexp_tot lnimp_tot entrance_2 regional_exp real_output wages_by_inds empl_avr , replace
    I tried to add: sformat("(%s)" sd) but also it did not work
    Code:
    by market: asdoc  sum exdumm exit_dum lnexp_tot lnimp_tot entrance_2 regional_exp real_output wages_by_inds empl_avr, sformat("(%s)" sd) replace
    Could you please help?

    Thank you
    JL

  • #2
    This is not directly possible with asdoc. Also, asdoc does not have sformat() option. I can suggest the following three possibilities:

    1. Build a custom table with asdoc using the row() option (some material on this here http://fintechprofessor.com/2018/09/...stata-ms-word/)

    2. Build a custom table with flexmat and export it to Word / Excel / LaTeX / HTML with asdocx (See this post https://www.statalist.org/forums/for...th-flexibility)

    3. If you need such tables frequently, build asdocx template and it will reduce the code to just one line, see further details here https://fintechprofessor.com/asdocx/...emplate-files/.
    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