/*********************************************** This program generates the dataset "Tryptase, study 2" *******************************************/ PROC FORMAT; VALUE genderf 0 = "Female" 1 = "Male"; VALUE hospitalf 1 = "Gentofte" 2 = "Rigshospitalet"; VALUE reacclassf 1 = "Mild" 2 = "More serious" 3 = "Anafylactic shock" 4 = "Heart arrest"; VALUE surgeryf 1 = "Cardio" 2 = "Endo" 3 = "Gut" 4 = "Gyn" 5 = "Head" 6 = "Organ" 7 = "Ortho" 8 = "Other" 9 = "Uro" 10 = "Missing"; RUN; FILENAME tryptase URL "http://staff.pubhealth.ku.dk/~linearpredictors/datafiles/Tryptase2.csv"; DATA tryptase2; INFILE tryptase DLM=';' FIRSTOBS=2; INPUT gender age ASA hospital reacclass reaction control tested positive surgery; FORMAT gender genderf. ; FORMAT hospital hospitalf. ; FORMAT reacclass reacclassf. ; FORMAT surgery surgeryf. ; LABEL ASA = "ASA Status" reacclass = "Severity of reaction" tested = "Allergy tested?" positive = "Positive?"; RUN;