<>
Peter wrote
I have a data set with subject, legs (within subject), time (3 occasions
over which measurements are taken on each leg) and 2 readings
(measurements per leg).
To specify a unique record I need to specify subject, leg, time and
reading. How do I do this in Stata 8.2? I"ve been playing around with
'iis' and 'tsset' to no avail. I keep getting 'time duplicated within a
panel' error message'
(I can get this to run in SPSS 15 within factors are leg, time and
reading but I'd like to try Stata.)
egen rec = group(subject leg reading)
xtset rec time
I don't see why 'within factors' would include time but not subject.
Aren't the repeated measurements taken over different times?
Kit Baum, Boston College Economics and DIW Berlin
http://ideas.repec.org/e/pba1.html
An Introduction to Modern Econometrics Using Stata:
http://www.stata-press.com/books/imeus.html
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/