Announcement

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

  • asdoc summary statistics by group - export results

    Hi

    I use the following command bys Group: asdoc tabstat var1 var2 var3 var4, replace stat (N mean min max tstat)

    The command works fine but when it exports to work it only shows the results for one group and not the other group (Note: Group is a dummy variable taking on the variable 0 or 1).

    How do I export results of both groups please?

    Thanks
    Sarah

  • #2
    The following code - very similar to yours - seems to work as expected.
    Code:
    sysuse auto, clear
    bys foreign: asdoc tabstat price mpg rep78 headroom, replace stat(N mean min max tstat)
    Click image for larger version

Name:	asdoc.png
Views:	1
Size:	80.2 KB
ID:	1505050

    Are you running the latest version of asdoc?
    Code:
    . which asdoc
    /Users/lisowskiw/Library/Application Support/Stata/ado/plus/a/asdoc.ado
    *! Version 2.3.4.1: Changes made June 15, 2019: option label added to list command; Fixing bys sum in MacOS
    *! Version 2.3.40 : Changes made June 6, 2019: eform() logistic pvalues correction in nested table
    ...

    Comment


    • #3
      Thank William, that did the trick! I was not running on the latest version of asdoc.

      Comment

      Working...
      X