![]() |
From | Margaret R Grove <margaret.r.grove@Dartmouth.EDU> |
To | statalist@hsphsun2.harvard.edu |
Subject | Re: st: customised output formats |
Date | Wed, 26 Mar 2008 07:54:27 -0400 |
Hi there
I have the variables Pid, x, y, t, d
For 1000 participants, and there are many observations for each
participant.
I'm using an archaic program that uses data in the format:
Pid
X,y
X,y
X,y
END
Pid
X,y
X,y
END
And so on.
I would think that I need to :
loop through for each pid
identify the value of pid
write this value to an outfile
loop through all observations of current pid
extract values for x and y
write x and y values to outfile
write "end" into outfile
I tried this logic, but I can't seem to append info to the outfile...
any ideas?
Cheers
Dan
*
* 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/
* * 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/
© Copyright 1996–2025 StataCorp LLC | Terms of use | Privacy | Contact us | What's new | Site index |