Announcement

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

  • wilcoxon ranked signs for matched pairs

    Hello-

    STATA 13 windows 32 bit, I want to run the Wilcoxon test for 31 variables and would like to know is there a way to write a command that will do this for all 31 at once and not have to test each variable one at a time? Thanks for your time.

    Ted

  • #2
    There is no way to do this "all at once" in a single command in Stata. But if you want to avoid writing 31 separate commands, you can do it in a loop. See -help foreach-.

    Comment


    • #3
      Thank you will look for "foreach"

      Comment


      • #4
        As an aside to Clyde's advice, Ted may want to take a look at a quite recent Nick's reply on the same topic:
        HTML Code:
        http://www.stata.com/statalist/archive/2014-02/msg00028.html
        .
        Kind regards,
        Carlo
        Kind regards,
        Carlo
        (Stata 18.0 SE)

        Comment

        Working...
        X