Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Loop to compare several variables within different timepoints


From   Nikolaos Pandis <[email protected]>
To   [email protected]
Subject   st: Loop to compare several variables within different timepoints
Date   Sun, 2 Feb 2014 12:38:44 +0200

I have about 25 variables for  which I recorded outcomes at 3 times
points (t1, t2, t3)
I  would like to construct a loop where I can automate testing using
the "signrank" test

I would like to do the following:

signrank a1=a2
signrank b1=b2
signrank c1=c2
.....
signrank a3=a2
signrank b3=b2
signrank c3=c2
..............

a,b,c are the variables and 1,2,3 refer to the timepoints

I am only interested in 25*2=50 comparisons and not to compare
different letter variables between them. Only within the same
variables to compare between timepoints.

Any help would be appreciated.

Thank you,

Nick
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index