HAART
Bases: BaseFeature
Highly Active Antiretroviral Theray (HAART) is a treatment regimen.
Source code in titan/features/haart.py
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 |
|
stats = ['haart']
class-attribute
instance-attribute
HAART collects the following stats:
- haart - number of agents with active haart
add_agent(agent)
classmethod
Add an agent to the class (not instance).
Increments counts
or haart agents by race and sex_type for the given agent.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
agent |
Agent
|
the agent to add to the class attributes |
required |
Source code in titan/features/haart.py
111 112 113 114 115 116 117 118 119 120 121 |
|
enroll(model, haart_params)
Determine whether to enroll an agent in HAART.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
model |
TITAN
|
the instance of TITAN currently being run |
required |
haart_params |
ObjMap
|
the HAART demographic params for this agent |
required |
Source code in titan/features/haart.py
177 178 179 180 181 182 183 184 185 186 187 188 |
|
enroll_cap(model, haart_params)
Determine whether to enroll an agent in HAART using the cap method.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
model |
TITAN
|
the instance of TITAN currently being run |
required |
haart_params |
ObjMap
|
the HAART demographic params for this agent |
required |
Source code in titan/features/haart.py
190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 |
|
enroll_prob(model, haart_params)
Determine whether to enroll an agent in HAART using probability method.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
model |
TITAN
|
the instance of TITAN currently being run |
required |
haart_params |
ObjMap
|
the HAART demographic params for this agent |
required |
Source code in titan/features/haart.py
209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 |
|
get_transmission_risk_multiplier(time, interaction_type)
Get a multiplier for how haart reduces hiv transmission risk based on interaction type and params.
By default, returns 1.0
Parameters:
Name | Type | Description | Default |
---|---|---|---|
time |
int
|
the current model time step |
required |
interaction_type |
str
|
The type of interaction where the agent could transmit HIV (e.g. 'sex', 'injection' - from [params.classes.interaction_types]) |
required |
Source code in titan/features/haart.py
139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 |
|
init_agent(pop, time)
Initialize the agent for this feature during population initialization (Population.create_agent
). Called on only features that are enabled per the params.
An Agent can only be initialized with HAART if they are HIV+ and diagnosed. They are randomly assigned to HAART with a probability based on demographics and then if assigned to haart, assigned an adherence based on those same demographic params.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
pop |
Population
|
the population this agent is a part of |
required |
time |
int
|
the current time step |
required |
Source code in titan/features/haart.py
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 |
|
init_class(params)
classmethod
Initialize the counts dictionary for the races and sex_types in the model.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
params |
ObjMap
|
the population params |
required |
Source code in titan/features/haart.py
32 33 34 35 36 37 38 39 40 41 42 43 |
|
initiate(rand_gen, haart_params, init_or_prob)
Initiate an agent with HAART and add them to the population.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
model |
the instance of TITAN currently being run |
required |
Source code in titan/features/haart.py
232 233 234 235 236 237 238 239 240 241 242 243 244 |
|
remove_agent(agent)
classmethod
Remove an agent from the class (not instance).
Decrements counts
or haart agents by race and sex_type for the given agent.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
agent |
Agent
|
the agent to remove from the class attributes |
required |
Source code in titan/features/haart.py
123 124 125 126 127 128 129 130 131 132 133 |
|
update_agent(model)
Update the agent for this feature for a time step. Called once per time step in TITAN.update_all_agents
. Agent level updates are done after population level updates. Called on only features that are enabled per the params.
Account for HIV treatment through highly active antiretroviral therapy (HAART). HAART was implemented in 1996, hence, there is treatment only after 1996. HIV treatment assumes that the agent knows their HIV+ status (dx
is True).
Parameters:
Name | Type | Description | Default |
---|---|---|---|
model |
TITAN
|
the instance of TITAN currently being run |
required |
Source code in titan/features/haart.py
67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 |
|