The simulated clinical data from the SAS manual 29 Question 1 - 1-way tables for 5 character variables 09:34 Tuesday, August 17, 1999 The FREQ Procedure Gender Cumulative Cumulative gender Frequency Percent Frequency Percent ----------------------------------------------------------- Female 17 50.00 17 50.00 Male 17 50.00 34 100.00 Is Pt. Pregnant? Cumulative Cumulative pregnant Frequency Percent Frequency Percent ------------------------------------------------------------- No 28 82.35 28 82.35 Yes 6 17.65 34 100.00 Pt. Taking Vitamins? Cumulative Cumulative vitamins Frequency Percent Frequency Percent ------------------------------------------------------------- No 18 52.94 18 52.94 Yes 16 47.06 34 100.00 Primary DX Cumulative Cumulative prim_dx Frequency Percent Frequency Percent ------------------------------------------------------------- Cold 7 20.59 7 20.59 Flu 1 2.94 8 23.53 Fracture 2 5.88 10 29.41 Routine Physical 7 20.59 17 50.00 Heart Problem 5 14.71 22 64.71 Lung Disorder 1 2.94 23 67.65 Abdominal Pain 3 8.82 26 76.47 Laceration 1 2.94 27 79.41 Immunization 2 5.88 29 85.29 Lyme disease 1 2.94 30 88.24 Ear Ache 4 11.76 34 100.00 The simulated clinical data from the SAS manual 30 Question 1 - 1-way tables for 5 character variables 09:34 Tuesday, August 17, 1999 The FREQ Procedure Secondary DX Cumulative Cumulative sec_dx Frequency Percent Frequency Percent ------------------------------------------------------------- Flu 1 6.67 1 6.67 Routine Physical 1 6.67 2 13.33 Heart Problem 1 6.67 3 20.00 Lung Disorder 4 26.67 7 46.67 Laceration 1 6.67 8 53.33 Immunization 6 40.00 14 93.33 Ear Ache 1 6.67 15 100.00 Frequency Missing = 19 The simulated clinical data from the SAS manual 31 Question 2a - 2-way table 09:34 Tuesday, August 17, 1999 The FREQ Procedure Table of prim_dx by gender prim_dx(Primary DX) gender(Gender) Frequency | Percent | Row Pct | Col Pct |Female |Male | Total -----------------+--------+--------+ Cold | 3 | 4 | 7 | 8.82 | 11.76 | 20.59 | 42.86 | 57.14 | | 17.65 | 23.53 | -----------------+--------+--------+ Flu | 1 | 0 | 1 | 2.94 | 0.00 | 2.94 | 100.00 | 0.00 | | 5.88 | 0.00 | -----------------+--------+--------+ Fracture | 2 | 0 | 2 | 5.88 | 0.00 | 5.88 | 100.00 | 0.00 | | 11.76 | 0.00 | -----------------+--------+--------+ Routine Physical | 3 | 4 | 7 | 8.82 | 11.76 | 20.59 | 42.86 | 57.14 | | 17.65 | 23.53 | -----------------+--------+--------+ Heart Problem | 2 | 3 | 5 | 5.88 | 8.82 | 14.71 | 40.00 | 60.00 | | 11.76 | 17.65 | -----------------+--------+--------+ Lung Disorder | 1 | 0 | 1 | 2.94 | 0.00 | 2.94 | 100.00 | 0.00 | | 5.88 | 0.00 | -----------------+--------+--------+ Total 17 17 34 50.00 50.00 100.00 (Continued) The simulated clinical data from the SAS manual 32 Question 2a - 2-way table 09:34 Tuesday, August 17, 1999 The FREQ Procedure Table of prim_dx by gender prim_dx(Primary DX) gender(Gender) Frequency | Percent | Row Pct | Col Pct |Female |Male | Total -----------------+--------+--------+ Abdominal Pain | 2 | 1 | 3 | 5.88 | 2.94 | 8.82 | 66.67 | 33.33 | | 11.76 | 5.88 | -----------------+--------+--------+ Laceration | 0 | 1 | 1 | 0.00 | 2.94 | 2.94 | 0.00 | 100.00 | | 0.00 | 5.88 | -----------------+--------+--------+ Immunization | 1 | 1 | 2 | 2.94 | 2.94 | 5.88 | 50.00 | 50.00 | | 5.88 | 5.88 | -----------------+--------+--------+ Lyme disease | 0 | 1 | 1 | 0.00 | 2.94 | 2.94 | 0.00 | 100.00 | | 0.00 | 5.88 | -----------------+--------+--------+ Ear Ache | 2 | 2 | 4 | 5.88 | 5.88 | 11.76 | 50.00 | 50.00 | | 11.76 | 11.76 | -----------------+--------+--------+ Total 17 17 34 50.00 50.00 100.00 The simulated clinical data from the SAS manual 33 Question 2b - 2-way table for women only 09:34 Tuesday, August 17, 1999 The FREQ Procedure Table of pregnant by vitamins pregnant(Is Pt. Pregnant?) vitamins(Pt. Taking Vitamins?) Frequency| Percent | Row Pct | Col Pct |No |Yes | Total ---------+--------+--------+ No | 6 | 5 | 11 | 35.29 | 29.41 | 64.71 | 54.55 | 45.45 | | 75.00 | 55.56 | ---------+--------+--------+ Yes | 2 | 4 | 6 | 11.76 | 23.53 | 35.29 | 33.33 | 66.67 | | 25.00 | 44.44 | ---------+--------+--------+ Total 8 9 17 47.06 52.94 100.00 The simulated clinical data from the SAS manual 34 Question 2c - Gender/pregnancy check 09:34 Tuesday, August 17, 1999 The FREQ Procedure Cumulative Cumulative pregnant gender Frequency Percent Frequency Percent ------------------------------------------------------------- No Female 11 32.35 11 32.35 No Male 17 50.00 28 82.35 Yes Female 6 17.65 34 100.00 The simulated clinical data from the SAS manual 35 Question 3 - 3-way table 09:34 Tuesday, August 17, 1999 The FREQ Procedure Table 1 of prim_dx by vitamins Controlling for gender=Female prim_dx(Primary DX) vitamins(Pt. Taking Vitamins?) Frequency | Percent | Row Pct | Col Pct |No |Yes | Total -----------------+--------+--------+ Cold | 1 | 2 | 3 | 5.88 | 11.76 | 17.65 | 33.33 | 66.67 | | 12.50 | 22.22 | -----------------+--------+--------+ Flu | 1 | 0 | 1 | 5.88 | 0.00 | 5.88 | 100.00 | 0.00 | | 12.50 | 0.00 | -----------------+--------+--------+ Fracture | 2 | 0 | 2 | 11.76 | 0.00 | 11.76 | 100.00 | 0.00 | | 25.00 | 0.00 | -----------------+--------+--------+ Routine Physical | 1 | 2 | 3 | 5.88 | 11.76 | 17.65 | 33.33 | 66.67 | | 12.50 | 22.22 | -----------------+--------+--------+ Heart Problem | 2 | 0 | 2 | 11.76 | 0.00 | 11.76 | 100.00 | 0.00 | | 25.00 | 0.00 | -----------------+--------+--------+ Lung Disorder | 0 | 1 | 1 | 0.00 | 5.88 | 5.88 | 0.00 | 100.00 | | 0.00 | 11.11 | -----------------+--------+--------+ Total 8 9 17 47.06 52.94 100.00 (Continued) The simulated clinical data from the SAS manual 36 Question 3 - 3-way table 09:34 Tuesday, August 17, 1999 The FREQ Procedure Table 1 of prim_dx by vitamins Controlling for gender=Female prim_dx(Primary DX) vitamins(Pt. Taking Vitamins?) Frequency | Percent | Row Pct | Col Pct |No |Yes | Total -----------------+--------+--------+ Abdominal Pain | 0 | 2 | 2 | 0.00 | 11.76 | 11.76 | 0.00 | 100.00 | | 0.00 | 22.22 | -----------------+--------+--------+ Laceration | 0 | 0 | 0 | 0.00 | 0.00 | 0.00 | . | . | | 0.00 | 0.00 | -----------------+--------+--------+ Immunization | 0 | 1 | 1 | 0.00 | 5.88 | 5.88 | 0.00 | 100.00 | | 0.00 | 11.11 | -----------------+--------+--------+ Lyme disease | 0 | 0 | 0 | 0.00 | 0.00 | 0.00 | . | . | | 0.00 | 0.00 | -----------------+--------+--------+ Ear Ache | 1 | 1 | 2 | 5.88 | 5.88 | 11.76 | 50.00 | 50.00 | | 12.50 | 11.11 | -----------------+--------+--------+ Total 8 9 17 47.06 52.94 100.00 The simulated clinical data from the SAS manual 37 Question 3 - 3-way table 09:34 Tuesday, August 17, 1999 The FREQ Procedure Table 2 of prim_dx by vitamins Controlling for gender=Male prim_dx(Primary DX) vitamins(Pt. Taking Vitamins?) Frequency | Percent | Row Pct | Col Pct |No |Yes | Total -----------------+--------+--------+ Cold | 2 | 2 | 4 | 11.76 | 11.76 | 23.53 | 50.00 | 50.00 | | 20.00 | 28.57 | -----------------+--------+--------+ Flu | 0 | 0 | 0 | 0.00 | 0.00 | 0.00 | . | . | | 0.00 | 0.00 | -----------------+--------+--------+ Fracture | 0 | 0 | 0 | 0.00 | 0.00 | 0.00 | . | . | | 0.00 | 0.00 | -----------------+--------+--------+ Routine Physical | 2 | 2 | 4 | 11.76 | 11.76 | 23.53 | 50.00 | 50.00 | | 20.00 | 28.57 | -----------------+--------+--------+ Heart Problem | 2 | 1 | 3 | 11.76 | 5.88 | 17.65 | 66.67 | 33.33 | | 20.00 | 14.29 | -----------------+--------+--------+ Lung Disorder | 0 | 0 | 0 | 0.00 | 0.00 | 0.00 | . | . | | 0.00 | 0.00 | -----------------+--------+--------+ Total 10 7 17 58.82 41.18 100.00 (Continued) The simulated clinical data from the SAS manual 38 Question 3 - 3-way table 09:34 Tuesday, August 17, 1999 The FREQ Procedure Table 2 of prim_dx by vitamins Controlling for gender=Male prim_dx(Primary DX) vitamins(Pt. Taking Vitamins?) Frequency | Percent | Row Pct | Col Pct |No |Yes | Total -----------------+--------+--------+ Abdominal Pain | 1 | 0 | 1 | 5.88 | 0.00 | 5.88 | 100.00 | 0.00 | | 10.00 | 0.00 | -----------------+--------+--------+ Laceration | 0 | 1 | 1 | 0.00 | 5.88 | 5.88 | 0.00 | 100.00 | | 0.00 | 14.29 | -----------------+--------+--------+ Immunization | 1 | 0 | 1 | 5.88 | 0.00 | 5.88 | 100.00 | 0.00 | | 10.00 | 0.00 | -----------------+--------+--------+ Lyme disease | 1 | 0 | 1 | 5.88 | 0.00 | 5.88 | 100.00 | 0.00 | | 10.00 | 0.00 | -----------------+--------+--------+ Ear Ache | 1 | 1 | 2 | 5.88 | 5.88 | 11.76 | 50.00 | 50.00 | | 10.00 | 14.29 | -----------------+--------+--------+ Total 10 7 17 58.82 41.18 100.00