Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Different records per patient


From   "Neil Shephard" <[email protected]>
To   [email protected]
Subject   Re: st: Different records per patient
Date   Thu, 21 Jun 2007 13:55:42 +0100

On 6/20/07, Ziad El-Khatib <[email protected]> wrote:
Dear subscribers,
I have dataset in STATA format, where we met patients at 6 time
points. I want to:
  - make new variable to define each time point as visit1, visit 2, visit 3
(some patients were met 3 times, some 6 times...)

  - so i can select patients per visit etc..


Any tips?

Without knowing the current structure of your data there is little
help that anyone can provide.

Note the advice in the FAQ (linked at the bottom of each mail to the
list, and re-iterated several times recently on the list)....

"Say exactly what you typed and exactly what Stata typed (or did) in
response. N.B. exactly! If you can, reproduce the error with one of
Stata's provided datasets or a simple concocted dataset that you
include in your posting."

Thus in this instance a bare minimum amount of information would be
whether your data is in long or wide format (see -man reshape- if you
don't know what this means), and the names of the variables as they
currently stand.

Neil




--
"In mathematics you don't understand things. You just get used to
them."  - Johann von Neumann

Email - [email protected] / [email protected]
Website - http://slack.ser.man.ac.uk/
Photos - http://www.flickr.com/photos/slackline/
*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index