Sample Data

Patient_ID Age Gender Medical_Condition Treatment Outcome Insurance_Type Income Region Smoking_Status Admission_Type Hospital_ID Length_of_Stay
1 77 Female Chronic Obstructive Dialysis Stable Public 77444 North Former smoker Urgent 3173 20
2 62 Female Obesity Physical therapy Improved Public 19367 West Non-smoker Urgent 65671 4
3 77 Male Hypertension Inhaler therapy Improved Medicare 16054 North Non-smoker Urgent 96914 3
4 41 Female Alzheimer’s Disease Medication C Worsened Medicare 54371 West Non-smoker Emergency 15732 11
5 82 Male Alzheimer’s Disease Chemotherapy Stable Private 55489 West Non-smoker Emergency 98232 2
6 71 Male Cancer Dietary changes Stable Public 48565 North Non-smoker Emergency 65285 5
7 74 Female Diabetes Physical therapy Stable Private 57793 South Non-smoker Elective 60973 11
8 44 Female Cancer Inhaler therapy Stable Public 47674 North Former smoker Emergency 4978 8
9 29 Male Arthritis Medication A Stable Public 15075 West Former smoker Emergency 79254 18
10 29 Male Arthritis Medication B Stable Medicare 78488 South Non-smoker Elective 91801 10
11 41 Male Rheumatoid Arthritis Therapy Stable Public 924 North Non-smoker Urgent 63557 13
12 82 Male Stroke Medication B Improved Medicare 31315 North Former smoker Urgent 90504 1
13 81 Female Rheumatoid Arthritis Dialysis Improved Private 75416 East Former smoker Emergency 26040 17
14 82 Male Chronic Kidney Disease Inhaler therapy Improved Public 87756 West Former smoker Urgent 75342 14
15 75 Female Hypertension Physical therapy Improved Public 43193 West Former smoker Urgent 83615 5
16 61 Male Cancer Medication A Stable Medicare 48718 North Non-smoker Emergency 89637 5
17 34 Female Stroke Immunosuppressants Improved Medicare 1106 East Non-smoker Urgent 3963 4
18 81 Male Chronic Kidney Disease Inhaler therapy Worsened Private 99980 West Non-smoker Urgent 99228 16
19 6 Female Rheumatoid Arthritis Medication A Worsened Public 48841 South Non-smoker Elective 9873 13
20 71 Male Chronic Kidney Disease Dietary counseling Improved Medicare 59108 West Non-smoker Elective 53610 4

Figure 1

Figure 2

Figure 3

## `geom_smooth()` using formula = 'y ~ x'

Figure 4

Figure 5

Figure 6

## `geom_smooth()` using formula = 'y ~ x'

Figure 7

Figure 8