Skip to content

Commit

Permalink
Merge pull request #301 from UCL/andrew_pr_22
Browse files Browse the repository at this point in the history
need to recognise that self testing introduced about 2018
  • Loading branch information
andrew-phillips-1 authored Dec 9, 2024
2 parents 2efb643 + 83455be commit d84b9c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hiv_synthesis.sas
Original file line number Diff line number Diff line change
Expand Up @@ -4662,7 +4662,7 @@ end;
eff_self_test_targeting = self_test_targeting;

w = rand('uniform');
if hard_reach=0 or (hard_reach = 1 and w < prob_self_test_hard_reach) then do;
if caldate{t} ge 2018 and (hard_reach=0 or (hard_reach = 1 and w < prob_self_test_hard_reach)) then do;

u_self_test=rand('uniform');
if . < np_lasttest <= 0 then u_self_test = u_self_test * eff_self_test_targeting;
Expand Down Expand Up @@ -16083,7 +16083,7 @@ if newp_this_per=1 then do;
if hiv ne 1 then newp_this_per_hivneg=1;
if hiv ne 1 and 15 <= age < 50 then newp_this_per_hivneg_1549=1;
if 15 <= age < 50 then newp_this_per_1549=1;
if gender=1 and hiv ne 1 then newp_this_per_hivneg_m = 1; if msm= and hiv ne 1 then newp_this_per_hivneg_msm = 1;
if gender=1 and hiv ne 1 then newp_this_per_hivneg_m = 1; if msm=1 and hiv ne 1 then newp_this_per_hivneg_msm = 1;
if gender=2 and hiv ne 1 then newp_this_per_hivneg_w = 1;
if gender=2 and hiv ne 1 and 15 <= age < 25 then newp_this_per_hivneg_age1524w = 1;
if sw=1 and hiv ne 1 then newp_this_per_hivneg_sw = 1;
Expand Down

0 comments on commit d84b9c4

Please sign in to comment.