-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsimulation.py
More file actions
29 lines (28 loc) · 863 Bytes
/
simulation.py
File metadata and controls
29 lines (28 loc) · 863 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
from pydantic import BaseModel
class simulation(BaseModel):
size: int = 10000
percentage_alc_only: float = 0.08
percentage_dep_only: float = 0.08
percentage_tobacco_only: float = 0.08
percentage_alc_dep: float = 0.04
percentage_alc_tobacco: float = 0.04
percentage_dep_tobacco: float = 0.04
percentage_tobacco_alcoholism_depression: float = 0.03
treatment_noth: float = 0.95
treatment_1_conditions: float = 0.90
treatment_2_conditions: float = 0.85
treatment_3_conditions: float = 0.80
male: float = 0.5
female: float = 0.5
low_bmi: float = 0.2
normal_bmi: float = 0.5
high_bmi: float = 0.3
l1_edu: float = 0.2
l2_edu: float = 0.2
l3_edu: float = 0.2
l4_edu: float = 0.4
min_age: int = 18
max_age: int = 60
mean_age: int = 35
sd_age: int = 15
seed: int = 52