17.11.2014 Views

Download - United States Renal Data System

Download - United States Renal Data System

Download - United States Renal Data System

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

PROC LIFETEST DATA=inc_95_s METHOD=KM NOTABLE PLOTS=(s) OUTSURV=surv95;<br />

TIME t*c(0);<br />

TITLE ‘1995 Incident Dialysis Patients 5-Year Survival Rates’;<br />

RUN;<br />

Example 5: Merge with Medical Evidence file (CMS 2728)<br />

Demonstrate a way to extract comorbid conditions for a pre-defined study cohort from the Medical Evidence file.<br />

DATA medevid;<br />

SET core_cd.medevid (KEEP=usrds_id cancer cararr carfail<br />

cva diabins diabprim dysrhyt hyper ihd<br />

mi pulmon pvasc);<br />

BY usrds_id;<br />

RUN;<br />

IF (FIRST.usrds_id);<br />

DATA me_2728;<br />

MERGE medevid (IN=x1)<br />

core_cd.patients (IN=x2 KEEP=usrds_id died tx1date);<br />

BY usrds_id;<br />

RUN;<br />

IF x1 AND x2;<br />

DATA inc98_me;<br />

MERGE inc90_99 (IN=x1 WHERE=(inc_year = 1998))<br />

me_2728 (IN=x2);<br />

BY usrds_id;<br />

RUN;<br />

IF x1 AND x2;<br />

Example 6 : 1998 Incident Patient Survival Rates (Kaplan Meier)<br />

Show a survival rate calculation stratified by patient comorbid condition.<br />

DATA inc_98_s;<br />

SET inc98_me;<br />

BY usrds_id;<br />

IF (UPCASE(cancer) IN (‘1’ ‘2’ ‘Y’ ‘N’));<br />

IF (UPCASE(cancer) IN (‘1’ ‘Y’)) THEN<br />

can = 1;<br />

ELSE<br />

can = 0;<br />

* Calculate the survival time (in month) of each incident patient.;<br />

t = (MIN(died, MDY(12,31,1999)) - esrddate + 1) / 30.4375;<br />

IF (t < 0) THEN t = 0;<br />

RUN;<br />

* Determine whether the patient is censored.;<br />

c = (MIN(died, MDY(12,31,1999)) = died);<br />

PROC LIFETEST DATA=inc_98_s METHOD=KM NOTABLE PLOTS=(s) OUTSURV=surv98;<br />

TIME t*c(0);<br />

STRATA can;<br />

12 e Getting Started

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!