Export Tabs and Cross-tab (tabulation) tables from Stata to Word with asdoc

Поделиться
HTML-код
  • Опубликовано: 25 дек 2024

Комментарии • 43

  • @ryanwillis2513
    @ryanwillis2513 3 года назад

    As a final year criminology student enrolled in a compulsory statistics course, I want to say thank you. This legitimately saved me over 3 hours.

  • @tauraimakwalu9528
    @tauraimakwalu9528 7 месяцев назад

    Wow you are good at STATA prof! Thanks for sharing this insightful information. I have subscribed to your channel to watch more of your previous videos.

  • @lauragallagher7488
    @lauragallagher7488 2 года назад

    What a contibution to humanity. Thank you so much!

  • @nickmwenda5183
    @nickmwenda5183 4 года назад +1

    Thank you. This is the easiest code I have seen so far.

  • @georgepsarros9521
    @georgepsarros9521 4 года назад +2

    What about Chi 2 test or Fisher's exaxt test, i really cant find a way to export my p-values ?
    Thank you in advance

  • @reptidan
    @reptidan 2 года назад

    amazing stuff this is going to save so much time for me!

  • @xshjiang
    @xshjiang 5 лет назад +2

    Amazing tutorial! Thanks so much. One question I have is that is it possible to add the % sign to the percentage? Look forward to your reply!

  • @Marcaumgatts
    @Marcaumgatts 5 лет назад +1

    Thank you for your hard work. The update to tabulate confidence intervals are already out? In some areas we prefer to report it instead of p-values, so asdoc can only help us with descriptive statistics in this version.

    • @StataProfessor
      @StataProfessor  5 лет назад +1

      I re-wrote the tabulate and table codes from scratch for better display. The task was heavy and needed significant amount of time and efforts. At the moment, I have excluded additional options with tabulate such as summary stats, but I plan to include these in the next version, that is asdocx. You can see updates related to this version here
      fintechprofessor.com/asdocx

  • @akua415
    @akua415 4 года назад +1

    Hi Dr. Shah, thank you so much for creating this package! It has been a lifesaver :) My issue is that when I enter "tab x, su(y)", everything works fine. But when I add the asdoc at the beginning "asdoc tab x, su(y)", it says the su isn't recognized. I was looking through your website, and it seems like someone else had the same problem. Is there a workaround?
    Thanks again.

  • @martinjames27
    @martinjames27 4 года назад +1

    Hello Dr. Shah! This is a great tutorial and a fantastic program! Thank you for your work and efforts! Quick question about the summary table for baseline characteristics, is there a way that the P values could be automated for the comparison in the baseline variables? Do you have a code for it? If ready, I shall be happy to buy it....if not ready, could you please let us know when ready? Thanks!

    • @StataProfessor
      @StataProfessor  4 года назад

      Dear Sourbha Dani, thanks for the kind words and appreciation. Can you provide more details on the requested functionality? You can contact me at attaullah.shah@imsciences.edu.pk

  • @StataProfessor
    @StataProfessor  3 года назад

    If you like asdoc, you shall like asdocx even more. asdocx can export to Excel and has tons of other features, see this link for details fintechprofessor.com/asdocx/

  • @amaranwar1249
    @amaranwar1249 3 года назад

    Asdoc does not execute additional tests such as Cramer V or Pearson Chi-Sq. results in MS Words. Could you assist on that how to bring such test results in MS Word?

  • @iam.RahulMishra
    @iam.RahulMishra 4 года назад

    Thanks for this video..
    Can we use asdoc command to produce results using weights.. for example, am running following command but it's not working..
    asdoc tab district stunting [iw=wt], r nofreq

  • @nnanwa529
    @nnanwa529 5 лет назад +1

    Damn!! This is awesome. Thank youuuuuuuuuuuuu

  • @asmamawgetnet5343
    @asmamawgetnet5343 4 года назад

    I like your lecture

  • @nthapn
    @nthapn 5 лет назад

    Thank you so much for teaching us these techniques using asdoc. I would like to know if there is any way I can format the tables so that N and percentage are shown side by side instead of in two rows. And how can I change the column titles?

    • @StataProfessor
      @StataProfessor  5 лет назад

      Thanks for your comments. I am working on a more flexible program that will have the functionalities that you have asked for. The new program will be called asdocx. I hope to roll it out in the next 6 months.

  • @mwambakapambwe2382
    @mwambakapambwe2382 5 лет назад +1

    After installing asdoc to Stata 15.0 it gives me "command asdoc is not recognised" when I try to use it. What's the fix for that?

    • @AttaullahShah
      @AttaullahShah 5 лет назад +1

      Seems your installation was not successful. Try it again with:
      ssc install asdoc, replace

    • @mwambakapambwe2382
      @mwambakapambwe2382 5 лет назад

      It now worked! Thanks

  • @mohitsharma5586
    @mohitsharma5586 5 лет назад

    How can we get 'Total' row in case of single tabulations in word document using asdoc?

    • @StataProfessor
      @StataProfessor  5 лет назад +1

      This is has been added to the new version. The new version of asdoc can be installed from my site. Copy and paste the following line in Stata and press enter.
      net install asdoc, from(fintechprofessor.com) replace
      Please note that the above line has to be copied in full. After installation of the new version, then restart Stata.
      Please do remember to cite asdoc. To cite:
      In-text citation
      Tables were created using asdoc, a Stata program written by Shah (2018).
      Bibliography
      Shah, A. (2018). ASDOC: Stata module to create high-quality tables in MS Word from Stata output. Statistical Software Components S458466, Boston College Department of Economics.

  • @omersahil339
    @omersahil339 3 года назад

    what about matrow error? asdoc command is not work while tabulate on industry and. years

    • @StataProfessor
      @StataProfessor  3 года назад

      See this link for a possible solution fintechprofessor.com/2019/04/07/the-error-option-matrow-not-allowed-when-using-asdoc-with-tabulate-command/

  • @shrikrishnabhatk135
    @shrikrishnabhatk135 5 лет назад

    for bi variate tables if we conduct a chi square the results are not poping up in word file please add this i.e is test statistic and p value of chi square test

  • @shrikrishnabhatk135
    @shrikrishnabhatk135 5 лет назад

    How to get univariate totals in word out put file using asdoc. In stata Output we will get totals but Word Output we are not getting total os frequency. please reply if there is any solution

    • @StataProfessor
      @StataProfessor  5 лет назад

      Thanks for pointing that out, I have noted it and shall add it in the next update.

  • @alexmarvin3093
    @alexmarvin3093 Год назад

    you rock.. my table looks way better this way over copying and pasting it into w/e

  • @voraveesaengavut890
    @voraveesaengavut890 5 лет назад +1

    Thank you!!!

  • @divyansamson3865
    @divyansamson3865 4 года назад

    Unable to override after first my file, “Myfile.doc already exists, option append was assumed” is what I get after trying first time. Kindly help

    • @StataProfessor
      @StataProfessor  4 года назад +2

      This is not an error. If the file already exists and you do not use the option "replace", then asdoc will write to the same file, i.e appending to it. Make sure that the Word file is not open when you are writing to the same file.

    • @divyansamson3865
      @divyansamson3865 4 года назад +1

      Yes I had the word document open now working thank you very much it’s awesome

    • @StataProfessor
      @StataProfessor  4 года назад

      @@divyansamson3865 Please subscribe to the channel and also invite your friends to asdoc and to this channel. Thanks in anticipation.

  • @Militia12410
    @Militia12410 5 лет назад

    what is wrong sir it says
    file Myfile.doc already exists
    fopen(): 602 file already exists
    asdoc_tab_twovars(): - function returned error
    : - function returned error

    • @StataProfessor
      @StataProfessor  5 лет назад

      Can you please send the data file and codes to me at stata.professor@gmail.com. Also, please indicate whether you are using Windows or other operating systems? And the version of Stata?

  • @danieladpsql
    @danieladpsql 5 лет назад

    it gives me "option matrow() not allowed

    • @ashleyftcash
      @ashleyftcash 4 года назад +2

      I just had the same problem and searched for an answer online. I read that this might happen to non-numeric data. When I transformed my data into numeric, I could export it.

    • @hopefulman1529
      @hopefulman1529 4 года назад

      @@ashleyftcash Very true . . . Had the same challenge and had to transform my data to numeric type

  • @annakoren1626
    @annakoren1626 Год назад

    What about excel ?

    • @StataProfessor
      @StataProfessor  Год назад

      If you like asdoc, you shall like asdocx even more. asdocx can export to Excel and has tons of other features, see this link for details fintechprofessor.com/asdocx/