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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

RUN;<br />

IF x1 THEN OUTPUT;<br />

Calcualte mean admissions per 1000 patient-years by gender.<br />

PROC TABULATE DATA=frateall;<br />

VAR rt_fadm;<br />

CLASS sex;<br />

WEIGHT exptime;<br />

TABLE sex=’’*rt_fadm=’’*mean*f=8.1;<br />

KEYLABEL mean=’’;<br />

TITLE1 ‘First Admission rates per 1,000 patient years’;<br />

RUN;<br />

Example 10: Create a patient cohort of 1998 Medicare Incident patients<br />

Create the 1998 incident patient file.<br />

DATA inc_98;<br />

SET core_cd.patients (WHERE=(incyear=1998));<br />

RUN;<br />

Find Medicare payer status at first service date;<br />

DATA first_payer;<br />

SET core_cd.payhist;<br />

BY usrds_id begdate;<br />

IF first.usrds_id;<br />

RUN;<br />

Combine payer information with original incident cohort and limit to patients with Medicare payers at first service date;<br />

PROC SORT DATA=inc_98;<br />

BY usrds_id;<br />

RUN;<br />

DATA medicare_inc_98;<br />

MERGE inc_98 (IN=x1)<br />

first_payer (IN=x2 KEEP=usrds_id mcare payer dualelig);<br />

BY usrds_id;<br />

IF x1 AND mcare = ‘Y’;<br />

RUN;<br />

16 e Getting Started

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

Saved successfully!

Ooh no, something went wrong!