Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

need to recognise that self testing introduced about 2018 #301

Merged
merged 2 commits into from
Dec 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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