Skip to content

Commit b289547

Browse files
committed
updates merging the branches
2 parents 84a0d82 + 77c5417 commit b289547

6 files changed

Lines changed: 1931 additions & 1001 deletions

File tree

1_datasets/sample/tedsa_sample.csv

Lines changed: 0 additions & 1001 deletions
This file was deleted.
198 KB
Loading
751 KB
Loading

3_data_exploration/README.md

Lines changed: 210 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,211 @@
11
# Data Exploration
2+
3+
TEDS-A Sample Data Exploration
4+
5+
This repository contains a sample of the Treatment Episode Admissions Data Set (TEDS-A)
6+
used for exploratory data analysis.
7+
8+
The dataset includes 1,000 rows and 50 columns, representing a subset of the
9+
broader TEDS data used for demonstration and research purposes only.
10+
11+
Exploration & Analysis
12+
13+
## 1. Demographic & Background Exploration
14+
15+
The dataset includes individuals from multiple regions, with the
16+
distribution across states showing noticeable variation.
17+
18+
Region Distribution:
19+
20+
- West: 307 individuals (30.7%)
21+
- Northeast: 261 (26.1%)
22+
- South: 243 (24.3%)
23+
- Midwest: 188 (18.8%)
24+
25+
Education Level:
26+
27+
- Grade 12/GED: 43.2%
28+
- Grades 9-11: 14.1%
29+
- 1-3 years college: 13.0%
30+
- Less than Grade 9: 4.5%
31+
- 4+ years college: 4.1%
32+
33+
Conclusion: The dataset shows regional variation with the West most
34+
represented, and moderate educational attainment levels centered around
35+
high school completion.
36+
37+
## 2. Population Characteristics
38+
39+
Age Distribution:
40+
41+
- Most common: 30-34 years (173 individuals)
42+
- 35-39 years: 151 individuals
43+
- 25-29 years: 143 individuals
44+
45+
Concentration in adults aged 25-44 years.
46+
47+
Gender Distribution:
48+
49+
- Male: 64.3%
50+
- Female: 35.6%
51+
52+
Race Distribution:
53+
54+
- White: 59.2%
55+
- Black/African American: 19.9%
56+
- Other single race: 6.2%
57+
- American Indian: 3.7%
58+
59+
Marital Status:
60+
61+
- Never married: 49.2%
62+
- Divorced/widowed: 10.3%
63+
- Now married: 9.7%
64+
![Demographic Distribution](https://i.postimg.cc/w3Fz8GKd/1-dimographic-distribution.png)
65+
66+
## 3. Substance Use Patterns
67+
68+
Primary Substance:
69+
70+
- Alcohol: 319 (31.9%)
71+
- Other opiates/synthetics: 119 (11.9%)
72+
- Heroin: 102 (10.2%)
73+
- Methamphetamine/speed: 98 (9.8%)
74+
- Marijuana/hashish: 82 (8.2%)
75+
- Cocaine/crack: 51 (5.1%)
76+
77+
Substance Categories:
78+
79+
- Alcohol: 31.9%
80+
- Opioids: 22.1%
81+
- Stimulants: 15.5%
82+
- Cannabis: 8.2%
83+
84+
Years of Use:
85+
86+
- Mean: 19.01 years
87+
- Median: 16 years
88+
- Range: 0-57 years
89+
90+
Conclusion: Alcohol is the most common primary substance, followed by
91+
opioids and stimulants. Long duration of use (median 16 years) indicates
92+
chronic patterns.
93+
![Substance Pattern](https://i.postimg.cc/xqgQD4rf/2-substance-battern.png)
94+
95+
## 4. Treatment History Exploration
96+
97+
Prior Treatment Episodes:
98+
99+
- No prior treatment: 28.1%
100+
- One prior: 19.1%
101+
- Two prior: 12.0%
102+
- Three prior: 7.6%
103+
- Five or more prior: 17.1%
104+
105+
Conclusion: Nearly 72% have prior treatment history, indicating chronic
106+
or recurring treatment patterns.
107+
![Treatment History](https://i.postimg.cc/Z0jmtMkT/3-tt-history.png)
108+
109+
### 5. Service Types & Access
110+
111+
Service Type:
112+
113+
- Non-intensive Outpatient: 52.2%
114+
- Detox 24hr Residential: 12.7%
115+
- Rehab Short-term (≤30 days): 12.1%
116+
- Intensive Outpatient: 12.0%
117+
- Rehab Long-term (>30 days): 6.7%
118+
119+
Wait Time:
120+
121+
- Same day: 72.7%
122+
- 1-7 days: 18.0%
123+
- 8-14 days: 4.1%
124+
- 15-30 days: 2.7%
125+
126+
Referral Sources:
127+
128+
- Self/Individual: 38.1%
129+
- Criminal justice/DUI/DWI: 20.5%
130+
- Alcohol/drug provider: 8.2%
131+
- Other healthcare: 6.9%
132+
![Referral Sources](https://i.postimg.cc/tYTjXNyP/10-Refferral-sources.png)
133+
134+
### 6. Payment Sources
135+
136+
Primary Payment:
137+
138+
- Medicaid: 60.4%
139+
- Other government: 14.8%
140+
- Private insurance: 7.6%
141+
- Self-pay: 7.2%
142+
- ![Service Type](https://i.postimg.cc/9z125n3F/4-Servies-type.png)
143+
144+
### 1. Substance Patterns by Service Type
145+
146+
Alcohol users:
147+
148+
- Non-intensive Outpatient: 38.6%
149+
- Detox 24hr Residential: 20.1%
150+
- Intensive Outpatient: 14.1%
151+
152+
Opioid users:
153+
154+
- Non-intensive Outpatient: 53.8%
155+
- Detox 24hr Residential: 15.4%
156+
157+
Cannabis users:
158+
159+
- Non-intensive Outpatient: 72.0%
160+
161+
Conclusion: Service type varies by substance, with Cannabis users primarily
162+
in outpatient settings and Alcohol users utilizing more detox services.
163+
![Subcategory](https://i.postimg.cc/G9zRw50y/6-subcategory.png)
164+
165+
### 8. Key Correlations & Risk Factors
166+
167+
Strongest Correlations:
168+
169+
- Opioid primary <-> Injection use: 0.33
170+
- Polysubstance <-> Injection use: 0.26
171+
- Polysubstance <-> No income: 0.19
172+
- Polysubstance <-> Homelessness: 0.15
173+
- Homeless <-> No income: 0.14
174+
175+
Conclusion: Injection drug use, polysubstance patterns, and socioeconomic
176+
vulnerabilities are interconnected risk factors.
177+
![Age Group](https://i.postimg.cc/Hj3mDhGQ/8-age-group.png)
178+
179+
### 9. Employment Patterns
180+
181+
- Unemployed: large representation in Alcohol, Opioids, and Stimulants
182+
users
183+
- Not in labor force: significant numbers across all major substance
184+
categories
185+
- Full-time employed: present across all substance types
186+
![Employment Status](https://i.postimg.cc/yWnK4bqc/7-employment-statutes.png)
187+
188+
### 10. Treatment History & Mental Health
189+
190+
Among those with five or more prior episodes:
191+
192+
- 88 without mental health disorder
193+
- 83 with mental health disorder
194+
195+
Conclusion: Co-occurring mental health is common among individuals with
196+
chronic treatment patterns.
197+
198+
Key Takeaways
199+
200+
- Service concentration: Most admissions (52.2%) are to non-intensive
201+
outpatient programs with same-day access.
202+
- Substance profile: Alcohol dominates (31.9%), followed by opioids
203+
(22.1%) and stimulants (15.5%).
204+
- Chronic patterns: 72% have prior treatment history, with 17.1% having
205+
five or more episodes.
206+
- Vulnerable populations: Polysubstance users face higher rates of
207+
homelessness and income insecurity.
208+
- Co-occurring conditions: Mental health disorders common among those
209+
with multiple prior episodes.
210+
- Access pathways: Self-referral (38.1%) and criminal justice (20.5%)
211+
are primary entry points

0 commit comments

Comments
 (0)