Simple SAS Intro question - 20 min max

Job ID: 33433828

Budget: $10 – $30 CAD

The Question is related to SAS coding language/ Data analytics

You have a longitudinal data file of visits to a dialysis center called patientdata. The first record for each patient includes an ID, Gender, a date of birth (DOB), heart rate (HR), systolic blood pressure (SBP), and diastolic blood pressure (DBP). Subsequent records for the same patient only contain data for the ID, HR, SBP, and DBP. That is, the DOB and GENDER information is only entered on the first record for each patient. There are a variable number of visits for each patient.

a) Read the datafile by column read input (either by infile statement or through datalines).

b) Create a data set containing the values for DOB and GENDER included in every observation.

Hint: Use a RETAIN statement to “remember” the DOB and GENDER.
Related categories: SAS