Announcement

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

  • How can I download Duun's test to STATA?

    Dear All,

    I want to do post hoc analysis after Kruskal Wallis test. I tried to do a Dunn's test, but I couldn't download it. I am using STATA 14.
    Some one please help me in downloading the package.
    Thanks in advance.

  • #2
    I guess you mean this package:

    Code:
    SJ-15-2 st0381_1  . . . . . . . . . . . . . . . . Software update for dunntest
            (help dunntest if installed)  . . . . . . . . . . . . . . . . A. Dinno
            Q2/15   SJ 15(2):605--606
            adds new features: Hochberg's adjustment for multiple
            comparisons, Benjamini-Yekutieli false-discovery-rate
            adjustment for multiple comparisons, and option to report
            row-column or column-row pairwise differences; corrects
            several bugs
    
    SJ-15-1 st0381   Nonparametric pairwise multiple comparisons using Dunn's test
            (help dunntest if installed)  . . . . . . . . . . . . . . . . A. Dinno
            Q1/15   SJ 15(1):292--300
            produces nonparametric pairwise multiple comparisons following
            a Kruskal-Wallis k-way test (kwallis)
    If you go


    Code:
    search dunntest
    a window will open and clicking on st0381_1 will lead to installation.



    Comment


    • #3
      Hi,
      I am also having trouble installing this software on my stata 16.0
      As advised, I typed search dunntest and then clicked on st0381_1
      But it came up with the following statement


      package name: st0381_1.pkg
      from: http://www.stata-journal.com/software/sj15-2/

      checking st0381_1 consistency and verifying not already installed...
      installing into c:\ado\plus\...
      file c:\ado\plus\stata.trk could not be opened

      Comment


      • #4
        I have no idea of your set-up but I have experience of network set-ups in which users do not have write permission on the C: drive (contrary to what people used to individual machines may suppose).

        True or not, a work-around could be to change to a directory where you do have write permission and go

        Code:
        copy http://www.stata-journal.com/software/sj15-2/dunntest.ado dunntest.ado 
        
        copy http://www.stata-journal.com/software/sj15-2/dunntest.sthlp dunntest.sthlp

        Comment


        • #5
          Thank you, I tried using the codes, but could not install it. It came up with this statement:

          copy http://www.stata-journal.com/softwar...2/dunntest.ado dunntest.ado
          file http://www.stata-journal.com/softwar...2/dunntest.ado not found
          r(601);

          . copy http://www.stata-journal.com/softwar...dunntest.sthlp dunntest.sthlp
          file http://www.stata-journal.com/softwar...dunntest.sthlp not found
          r(601);

          Comment


          • #6
            Try using double-quotation marks around the URL.
            Code:
            copy "http://www.stata-journal.com/software/sj15-2/dunntest.ado" dunntest.ado
            
            copy "http://www.stata-journal.com/software/sj15-2/dunntest.sthlp" dunntest.sthlp

            Comment


            • #7
              Thank you, I tried, but it came up with this message

              copy "http://www.stata-journal.com/software/sj15-2/dunntest.ado" dunntest.ado
              file http://www.stata-journal.com/softwar...2/dunntest.ado not found
              r(601);

              . copy "http://www.stata-journal.com/software/sj15-2/dunntest.sthlp" dunntest.sthlp
              file http://www.stata-journal.com/softwar...dunntest.sthlp not found
              r(601);

              Comment


              • #8
                Sorry; you need the package identifier too as in

                Code:
                http://www.stata-journal.com/software/sj15-2/st0381_1/dunntest.ado
                and equivalently for the help file.

                Comment


                • #9
                  Thank you, Tried this one, but came up with the following messages

                  copy http://www.stata-journal.com/softwar...1/dunntest.ado
                  invalid file specification
                  r(198);

                  . copy "http://www.stata-journal.com/software/sj15-2/st0381_1/dunntest.ado"
                  invalid file specification
                  r(198);

                  Comment


                  • #10
                    Save the attached do-file to the desired directory, open Stata, cd to that directory so that it's the working directory and run the do-file. You should get something like the following in Stata's Results window.

                    .ÿ
                    .ÿforeachÿfileÿinÿ"dunntest.ado"ÿ"dunntest.sthlp"ÿ{
                    ÿÿ2.ÿÿÿÿÿcopyÿ"http://www.stata-journal.com/software/sj15-2/st0381_1/`file'"ÿ`file'
                    ÿÿ3.ÿ}

                    .ÿ
                    .ÿdirÿdunntest.*
                    ÿÿ15.3kÿÿÿ4/14/20ÿ21:40ÿÿdunntest.adoÿÿÿÿÿÿ
                    ÿÿ11.1kÿÿÿ4/14/20ÿ21:40ÿÿdunntest.sthlpÿÿÿÿ

                    .ÿ
                    .ÿexit

                    endÿofÿdo-file


                    .
                    Attached Files

                    Comment


                    • #11
                      Thank you,
                      I will try soon

                      Comment


                      • #12
                        Code:
                        help copy
                        shows that copy needs two arguments, the file to be copied and the new name. Two arguments were used in #4 #5 #6 #7-- just that the first argument was wrong.

                        in #9 you didn't give a second argument.

                        Comment


                        • #13
                          Thank you so much! Once I added the new name in the end, I was able to copy the files. Thank you.

                          Comment


                          • #14
                            And I was able to use the following data and conduct Kruskal-Wallis test followed by Dunn test

                            use https://www.stata-press.com/data/r16/census
                            (1980 Census data by state)

                            kwallis medage, by(region)

                            dunntest medage, by(region) ma(bonferroni) nokwallis

                            Thank you

                            Comment

                            Working...
                            X