Announcement

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

  • Rodrigo Badilla
    replied
    Its possible insert text with stored results after a command, as a putdocx?,:

    summarize mpg

    putdocx text ("In this dataset, there are ‘r(N)’")

    Leave a comment:


  • Attaullah Shah
    replied
    All the bugs reported in this thread have been fixed in version 2.0 of asdoc. Further, version 2.0 offers several new features which I have summarized in this Statalist post.
    To update asdoc,
    Code:
    ssc install asdoc, replace

    Leave a comment:


  • Attaullah Shah
    replied
    Can you post an example dataset which generates the said error?

    Leave a comment:


  • Welch Suggs
    replied
    Prof. Shah, thank you for this elegant program. Just one very small note. I am trying to export a series of tables with descriptive statistics for subgroups of my data. The subgroup indicator variable is a string, e.g.:
    Code:
    asdoc sum q_1 q_2 q_3 q_4  q_10 q_11 q_14 q_15 q_16 q_18 if indicator=="A", label
    When I run this, it returns a type mismatch error, but the command
    Code:
    sum q_1 q_2 q_3 q_4  q_10 q_11 q_14 q_15 q_16 q_18 if indicator=="A"
    runs without error. I can work around it, but it's a bit of a bummer.

    Best regards!

    Leave a comment:


  • Attaullah Shah
    replied
    When using option by(), Stata estimates a two-sample t-test. On the other hand, asdoc still performs a one sample t-test for each category of the by variable. This behavior does not conform to what Stata does. I am already working on other suggestions, including this one as mentioned above in post #25.

    Leave a comment:


  • Marlene Fruehling
    replied
    Hi Attalullah,
    I am using the asdoc command on a ttest using the following command:

    local basiccontrols dum_female_respondent
    foreach v in `basiccontrols' `wealth' `lamps' {
    asdoc ttest `v', by(scheme_12) l(98) save(Output\Descriptive Tables.doc) append title(Table 2: `v' ttest result: mean=0) stats(obs mean se t p )
    }

    The command works, but I am getting two p-values, which I am not sure how to interprete. I'd like to have the pvalue for Ha: diff != 0 as output.

    Any help would be much appreciated!
    Thank you,
    Marlene

    Leave a comment:


  • Attaullah Shah
    replied
    On my computer, I just checked and the commands work fine.
    Code:
     sysuse auto, clear
    asdoc ttest rep78==0, replace title(T-test results : H1: mean = 0)
    asdoc ttest price==0, rowappend
    Click image for larger version

Name:	ttest.png
Views:	1
Size:	8.9 KB
ID:	1453066

    Please ensure that when asdoc command is entered, the Myfile.doc is not open. If the problem persists, please provide information on your operating system and version of Stata so that I can investigate the problem in detail.

    Leave a comment:


  • Peter Quill
    replied
    Hello

    The rowappend option does not seem to be working for me.

    I followed Example #53 of the helpfile. The below 2 commands work fine; I am able to open the resulting MyFile.doc and confirm that the t-test of rep78 is in that document.

    sysuse auto, clear
    asdoc ttest rep78==0, replace title(T-test results : mean == 0)
    However, when I type the next command of the example and then try to open MyFile.doc:

    asdoc ttest price==0, rowappend
    I receive a MSWord error that states:

    Word was unable to read this document. It may be corrupt.

    Try one or more of the following:

    * Open and Repair the file.

    * Open the file with the Text Recovery converter.

    What can be done about this error?

    Leave a comment:


  • Attaullah Shah
    replied
    Thierry Coulibaly I appreciate your feedback.

    Leave a comment:


  • Thierry Coulibaly
    replied
    Simply amazing. Thanks thanks thanks.

    Leave a comment:


  • Aleksandra Anic
    replied
    Originally posted by Nick Cox View Post
    Aleksandra: See post #7 in this thread. You need to install that separately.
    Dear Nick, thank you very much. It works now. I somehow skipped that post.
    Best wishes

    Leave a comment:


  • Nick Cox
    replied
    Aleksandra: See post #7 in this thread. You need to install that separately.

    Leave a comment:


  • Aleksandra Anic
    replied
    Dear prof. Shah,

    Thank you very much for such usefull command. The command does not work with ttest. I get the follwing error
    asdoc ttest RR, by(LF) replace
    RR
    , sep(,)
    matrix accum not found

    Also, when I use "auto" example, I also get error, although the different one.

    asdoc ttest rep78==0, title(T-test results : mean == 0) stat(obs mean se df t)
    rep78==0
    command aseploc is unrecognized
    r(199);

    It is unusual that I use asdoc installed command, and that it somehow read the command as aseploc?

    I tried asdoc with table command and it works, both with my data and the byssin database.

    Could you please give me some hints what should I do in order to use asdoc with ttest?

    Best wishes,
    Aleksandra

    Leave a comment:


  • Attaullah Shah
    replied
    Dear Laurence Lester
    All the three issues you have reported are genuine. These issues will be solved in the next update, which is expected in few weeks. Thanks for reporting these.

    Leave a comment:


  • Attaullah Shah
    replied
    Since the table command is extremely complex to code. asdoc tries to write the output from a log file, but for that asdoc needs a fixed cell width. asdoc specifies its own cell width, which leaves no room for users to modify the cell width. Therefore, you can safely ignore the message
    Code:
      
     note: cellwidth too small, cannot display column heading; to increase cellwidth, specify cellwidth(#)

    Leave a comment:

Working...
X