Announcement

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

  • Exporting t-test results to Word in a "paper-like" format

    Hello everybody!
    I am running a t-test (mean comparison test), two samples using variables, with unequal variances using Welch's approximation. I have already exported other results such as summary statistics and regression results using the command asdoc. Unfortunately, with the t-test this command is not working.
    This is what it shows me:

    . asdoc ttest srifundsreturns == nonsrifundsreturns, unpaired unequal welch
    welch option invalid for one-sample or paired tests
    r(198);

    I tried in a different way and still I have some problems:

    . asdoc ttest srifundsreturns==nonsrifundsreturns, replace
    srifundsreturns - nonsrifundsreturns invalid name

    Can someone please help me ?

  • #2

    You will increase your chances of useful answer by following the FAQ on asking questions. Obviously, it would be a whole lot easier for folks to help you if they could replicate your problem.

    The first thing that is obvious from your code and the return is that it looks like the problem is in the t-test statement not the exporting part. Likewise, it looks like there is a problem in the t-test for the second statement.

    It is always a good idea to make sure that your code is running without adding the complexity of exporting procedures first, then add the exporting procedures.

    Comment

    Working...
    X