Statalist The Stata Listserver


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

st: Coding visits per patient


From   "Ziad Khatib" <[email protected]>
To   [email protected]
Subject   st: Coding visits per patient
Date   Fri, 26 Jan 2007 12:10:30 -0800

Hi,
I am using Stata 9, and I have data for patients who came to the
clinic on seperate occasions.
I am trying to create new variable, called "visit" and to mark the
"visit number" per patient.
For example:
Patient 1, came on Jan,1, 2007, Feb.1, 2007, March 1, 2007 etc..
How to code "visit" variable to have "1" for Jan.1
"2" for Feb1
"3" for March 1?
etc..


Thank you & best regards from South Africa
ziad
*
*   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