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" <>
Subject   Re: st: Different records per patient
Date   Thu, 21 Jun 2007 13:55:42 +0100

On 6/20/07, Ziad El-Khatib <> 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.


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

Email - /
Website -
Photos -
*   For searches and help try:

© Copyright 1996–2017 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index