Michael Macciomei replied:
Thanks for the help and sorry that it took so long to write back. I didn't get it to work exacly but I did manage to create the 48 new variables. Now I am trying to loop through all of them to ttest against each other.
I have variables like:
a1 b1 c1 d1
a2 b2 c2 d2
a3 b3 c3 d3
a4 b4 c4 d4
and I want to get all the 1 variables to ttest against each other (6 different ttests) and then all the 2 variables against each other and so on 48 times. Any suggestions?
Use -egen, group()- to make the pairs, e.g.:
. egen pair1=group(a1 b1)
. egen pair2=group(a1 c1)
. egen pair3=group(a1 d1)
etc, and loop them through using -forval-, as I showed you in the previous post.
Hope that helps,
Clive Nicholas
___________________________________________________________
Yahoo! Answers - Got a question? Someone out there knows the answer. Try it
now.
http://uk.answers.yahoo.com/
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/