# RES.dy - *Brittney Brown, Stat 3010, Final Project:...

This preview shows pages 1–3. Sign up to view the full content.

*Brittney Brown, Stat 3010, Final Project: Analysis of Medical Resident ; /* / *TO VIEW DATA IN SAS; * PROC PRINT DATA = RESIDENT; RUN; R *SETTING SYSTEM OPTIONS; * DM 'LOG;CLEAR;OUT;CLEAR;'; OPTIONS LS=100 PS=66 FORMDLIM="="; QUIT; Q *ASSIGN LIBREF; * LIBNAME R1 'E:\STAT3010'; L *SAVING THE DATA PERMANENTLY; * DATA R1.RESIDENT; SET RESIDENT; RUN; R *ADDING DATA LABELS; * DATA RES1; SET R1.RESIDENT; LABEL D2= 'AGE' D8= 'NUMBER OF ON-CALL DAYS IN AN AVERAGE MONTH' D9= 'NUMBER OF NIGHTS/WEEKENDS WORKED IN AN AVERAGE WEEK' D10= 'NUMBER OF HOURS OF SLEEP IN AN AVERAGE NIGHT' D11= 'NUMBER OF HOURS WORKED IN AN AVERAGE WEEK' PGY= 'POST-GRADUATE YEAR' SEX= 'GENDER' PS28A= 'PROFESSIONAL STRESSORS' MBI_EE= 'EMOTIONAL EXHAUSTION'; RUN; R *ADDING VARIABLE VALUE LABELS; * PROC FORMAT LIBRARY = R1; VALUE SEXA 0 = 'FEMALE' 1 = 'MALE'; VALUE PS28AA 1= 'NOT AT ALL' 2= 'SLIGHT AMOUNT' 3= 'MODERATE AMOUNT' 4= 'LARGE AMOUNT' 5= 'EXTREME AMOUNT'; RUN; R Proc Print data=RES1; Run; R

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
Data RES2; Set RES1; Format SEX SEXA. PS28A PS28AA.;
This is the end of the preview. Sign up to access the rest of the document.

## This note was uploaded on 02/04/2011 for the course STAT 3010 taught by Professor Priestly during the Spring '08 term at Kennesaw.

### Page1 / 4

RES.dy - *Brittney Brown, Stat 3010, Final Project:...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online