Skip to content

Commit d0f1efa

Browse files
committed
SAFETY_SCALAR replaced by INJURY_REPORTING_RATE, which varies from 0.2 to 1
1 parent f29e710 commit d0f1efa

4 files changed

Lines changed: 1077 additions & 76 deletions

File tree

code/scenarios/accra/master_script_rj.R

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ ithim_object$parameters <- ithim_setup_parameters()
4141
ithim_object$outcome$cleaner_fleet <- run_ithim(ithim_object, seed = 1)
4242

4343
## what if: the roads are safer
44-
ithim_object$parameters <- ithim_setup_parameters(SAFETY_SCALAR = 0.5)
44+
ithim_object$parameters <- ithim_setup_parameters(INJURY_REPORTING_RATE = 2)
4545
ithim_object$outcome$safety <- run_ithim(ithim_object, seed = 1)
4646

4747
## what if: the rate of chronic disease doubles
@@ -128,10 +128,10 @@ print(evppi)
128128

129129
environmental_scenarios <- c('now','safer','more_chronic_disease','less_background_AP','less_background_PA')
130130
certainty_parameters <- list(uncertain=list(
131-
safey_scalar = list(now=c(0,log(1.2)), safer=0.5, more_chronic_disease=c(0,log(1.2)), less_background_AP=c(0,log(1.2)),less_background_PA=c(0,log(1.2))),
131+
safey_scalar = list(now=c(8,3), safer=2, more_chronic_disease=c(8,3), less_background_AP=c(8,3), less_background_PA=c(8,3)),
132132
disease_scalar = list(now=c(0,log(1.2)), safer=c(0,log(1.2)), more_chronic_disease=2.0, less_background_AP=c(0,log(1.2)),less_background_PA=c(0,log(1.2))),
133133
background_pm = list(now=c(log(50),log(1.2)),safer=c(log(50),log(1.2)),more_chronic_disease=c(log(50),log(1.2)),less_background_AP=30.625, less_background_PA=c(log(50),log(1.2))),
134-
transport_pm = list(now=c(5,20), safer=c(5,20), more_chronic_disease=c(5,20), less_background_AP=0.3673469, less_background_PA=c(5,20)),
134+
transport_pm = list(now=c(5,20), safer=c(5,20), more_chronic_disease=c(5,20), less_background_AP=0.3673469, less_background_PA=c(5,20)),
135135
background_pa_scalar = list(now=c(0,log(1.2)), safer=c(0,log(1.2)), more_chronic_disease=c(0,log(1.2)), less_background_AP=c(0,log(1.2)),less_background_PA=0.5),
136136
NSAMPLES = 4096,
137137
BUS_WALK_TIME = c(log(5), log(1.2)),
@@ -141,7 +141,7 @@ certainty_parameters <- list(uncertain=list(
141141
PA_DOSE_RESPONSE_QUANTILE = T,
142142
AP_DOSE_RESPONSE_QUANTILE = T
143143
), not_uncertain=list(
144-
safey_scalar = list(now=1, safer=0.5, more_chronic_disease=1, less_background_AP=1, less_background_PA=1),
144+
safey_scalar = list(now=1, safer=2, more_chronic_disease=1, less_background_AP=1, less_background_PA=1),
145145
disease_scalar = list(now=1, safer=1, more_chronic_disease=2.0, less_background_AP=1, less_background_PA=1),
146146
background_pm = list(now=50, safer=50, more_chronic_disease=50, less_background_AP=30.625, less_background_PA=50),
147147
transport_pm = list(now=0.225,safer=0.225,more_chronic_disease=0.225,less_background_AP=0.3673469,less_background_PA=0.225),
@@ -168,7 +168,7 @@ if(file.exists(file_name)){
168168
BUS_WALK_TIME = certainty_parameters[[certainty]]$BUS_WALK_TIME,
169169
MMET_CYCLING = certainty_parameters[[certainty]]$MMET_CYCLING,
170170
MMET_WALKING = certainty_parameters[[certainty]]$MMET_WALKING,
171-
SAFETY_SCALAR = certainty_parameters[[certainty]]$safey_scalar[[environmental_scenario]],
171+
INJURY_REPORTING_RATE = certainty_parameters[[certainty]]$safey_scalar[[environmental_scenario]],
172172
CHRONIC_DISEASE_SCALAR = certainty_parameters[[certainty]]$disease_scalar[[environmental_scenario]],
173173
PM_CONC_BASE = certainty_parameters[[certainty]]$background_pm[[environmental_scenario]],
174174
PM_TRANS_SHARE = certainty_parameters[[certainty]]$transport_pm[[environmental_scenario]],

data/dose_response/disease_outcomes_lookup.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
GBD_name,acronym,air_pollution,physical_activity,ap_acronym,pa_acronym
2-
All causes,ac,0,1,,all_cause_mortality
2+
All causes,ac,0,1,,all_cause
33
Ischemic heart disease,ihd,1,1,cvd_ihd,coronary_heart_disease
44
Neoplasms,neo,0,1,,total_cancer
55
"Tracheal, bronchus, and lung cancer",lc,1,1,neo_lung,lung_cancer

0 commit comments

Comments
 (0)