[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: Date: Sun, 28 Oct 2007 16:42:05 +0100
Dear Statalisters,
I have a dataset composed of 30 variables (from patient_1 to patient_30).
Each variable includes 20 observations (daily cost per patient during a
20-day follow-up).
I would like to create a new variable containing only the 20th day
observation for each patient. I would figure out something like what
follows:
Patient_id 20th_day_observation
1 cost 20th day patient1
. .
. .
. .
. .
30 cost 20th day patient30
Any hint highly welcomed.
Thanks a lot for your kindness and for your time.
Kind Regards,
Carlo
*
* 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/