LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (May 2001, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Thu, 24 May 2001 15:21:32 GMT
Reply-To:   JP <R_E_M_O_V_E_lecruguel@EPID.JGH.MCGILL.CA>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   JP <R_E_M_O_V_E_lecruguel@EPID.JGH.MCGILL.CA>
Subject:   link 2 data (more than simple merge).

Hi all,

I am looking for an efficient way to do the following:

I have a day matrix: patient_id day1 - day 365 with a code (long term care facility id) for each day.

I have another dataset: long_term_care_id cost_per_day

I want to put the cost for each day in the matrix. patient_id day1 - day 365 cost_day1-cost_day365

It's like merging 365 times, or doing a IF long_term_care_id = i then cost = x... with an ARRAY statement. I have over 100 different long term care facilities id. I don't want to do the IF THEN list because I may need to change costs in the future, so I would like to relate facility_id to cost for each day easily.

Any idea? I thought of SQL but I do not see how to repeat the 365 times.

JP

-- Jean-Pierre Le Cruguel Bureau A-135 Groupe de recherche en Services Integres aux Personnes Agees (SIPA) Centre D'Epidemiologie Clinique et de Recherche en Sante Publique Hopital General Juif 3755 Cote-Sainte-Catherine Montreal (Quebec) CANADA H3T 1E2

Tel: (514) 340 8222 ext: 3878 Fax: (514) 340 7564


Back to: Top of message | Previous page | Main SAS-L page